/** * Creates a new java type representation. * * @param typeName The binary name of this type. * @param modifiers The modifiers of this type when creating a stub. * @param superClass The super class of this type when creating a stub. * @param interfaces The interfaces of this type when creating a stub. */ JavaType(String typeName, int modifiers, Class<?> superClass, Class<?>... interfaces) { TypeDescription typeDescription; try { typeDescription = TypeDescription.ForLoadedType.of(Class.forName(typeName)); } catch (Exception ignored) { typeDescription = new TypeDescription.Latent(typeName, modifiers, TypeDescription.Generic.OfNonGenericType.ForLoadedType.of(superClass), new TypeList.Generic.ForLoadedTypes(interfaces)); } this.typeDescription = typeDescription; }
throw new IllegalArgumentException(functionalInterface + " does not define exactly one abstract method: " + methods); return bootstrap(new MethodDescription.Latent(new TypeDescription.Latent("java.lang.invoke.LambdaMetafactory", Opcodes.ACC_PUBLIC, TypeDescription.Generic.OBJECT),
/** * Statement class type description helper. * * @return CQLStatement class type description */ private static TypeDescription cqlStatementDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.CQLStatement", Modifier.INTERFACE, null, null); }
/** * Statement class type description helper. * @return String class type description */ private static TypeDescription queryStringDescription() { return new TypeDescription.Latent("java.lang.String", Modifier.INTERFACE, null, null); }
/** * QueryState class type description helper. * * @return QueryState class type description */ private static TypeDescription queryStateDescription() { return new TypeDescription.Latent("org.apache.cassandra.service.QueryState", Modifier.PUBLIC | Modifier.ABSTRACT, null, null); }
/** * Statement class type description helper. * * @return CQLStatement class type description */ private static TypeDescription cqlStatementDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.CQLStatement", Modifier.INTERFACE, null, null); }
/** * QueryState class type description helper. * * @return QueryState class type description */ private static TypeDescription queryStateDescription() { return new TypeDescription.Latent("org.apache.cassandra.service.QueryState", Modifier.PUBLIC | Modifier.ABSTRACT, null, null); }
/** * QueryOptions class type description helper. * * @return QueryOptions class type description */ private static TypeDescription queryOptionsDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.QueryOptions", Modifier.PUBLIC, null, null); }
/** * QueryState class type description helper. * * @return QueryState class type description */ private static TypeDescription queryStateDescription() { return new TypeDescription.Latent("org.apache.cassandra.service.QueryState", Modifier.PUBLIC | Modifier.ABSTRACT, null, null); }
/** * QueryState class type description helper. * * @return QueryState class type description */ private static TypeDescription queryStateDescription() { return new TypeDescription.Latent("org.apache.cassandra.service.QueryState", Modifier.PUBLIC | Modifier.ABSTRACT, null, null); }
/** * QueryOptions class type description helper. * * @return QueryOptions class type description */ private static TypeDescription queryOptionsDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.QueryOptions", Modifier.PUBLIC, null, null); }
/** * QueryOptions class type description helper. * * @return QueryOptions class type description */ private static TypeDescription queryOptionsDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.QueryOptions", Modifier.PUBLIC, null, null); }
/** * QueryOptions class type description helper. * * @return QueryOptions class type description */ private static TypeDescription queryOptionsDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.QueryOptions", Modifier.PUBLIC, null, null); }
/** * Statement class type description helper. * * @return CQLStatement class type description */ private static TypeDescription cqlStatementDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.CQLStatement", Modifier.INTERFACE, null, null); }
/** * Statement class type description helper. * @return String class type description */ private static TypeDescription queryStringDescription() { return new TypeDescription.Latent("java.lang.String", Modifier.INTERFACE, null, null); }
/** * Statement class type description helper. * @return String class type description */ private static TypeDescription queryStringDescription() { return new TypeDescription.Latent("java.lang.String", Modifier.INTERFACE, null, null); }
/** * Statement class type description helper. * @return String class type description */ private static TypeDescription queryStringDescription() { return new TypeDescription.Latent("java.lang.String", Modifier.INTERFACE, null, null); }
/** * Statement class type description helper. * @return Statement class type description */ private static TypeDescription statementDescription() { return new TypeDescription.Latent("com.datastax.driver.core.Statement", Modifier.ABSTRACT, null, null); }
/** * Statement class type description helper. * * @return CQLStatement class type description */ private static TypeDescription cqlStatementDescription() { return new TypeDescription.Latent("org.apache.cassandra.cql3.CQLStatement", Modifier.INTERFACE, null, null); }