Tabnine Logo
ContextualStatementBuilder.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
org.jboss.errai.codegen.builder.ContextualStatementBuilder

Best Java code snippets using org.jboss.errai.codegen.builder.ContextualStatementBuilder.getType (Showing top 3 results out of 315)

origin: errai/errai

 @Override
 public MetaClass getType() {
  return statementBuilder.getType();
 }
};
origin: org.jboss.errai/errai-codegen

 @Override
 public MetaClass getType() {
  return statementBuilder.getType();
 }
};
origin: errai/errai

/**
 * This reproduces a bug found in the JavaReflectionClass.
 * PortableIntegerParameterDefinition overrides a method with a generic return
 * type (getValue). Class.getDeclaredMethods returns a bridge method with a
 * return type of the upper type bound (in this case, Serializable). This
 * resulted in JavaReflectionClass.getMethods() returning a MetaMethod for
 * bridge method with the wrong return type, leading to seemingly mysterious
 * codegen errors.
 */
@Test
public void testMethodReturnTypeIsSpecializedTypeAndNotFromBridgeMethod() throws Exception {
 final MetaClass mc = getMetaClassImpl(PortableIntegerParameterDefinition.class);
 final MetaMethod method = mc.getBestMatchingMethod("getValue", new MetaClass[0]);
 final ContextualStatementBuilder invokeStmt = nestedCall(newObject(mc)).invoke("getValue");
 // Force statement to load return type
 invokeStmt.toJavaString();
 final MetaClass stmtReturnType = invokeStmt.getType();
 final MetaClass expected = getMetaClassImpl(java.lang.Integer.class);
 assertEquals(expected, method.getReturnType());
 assertEquals(expected, stmtReturnType);
}
org.jboss.errai.codegen.builderContextualStatementBuildergetType

Popular methods of ContextualStatementBuilder

  • invoke
  • returnValue
  • loadField
  • foreach
  • generate
  • if_
  • foreachIfNotNull
  • ifNot
  • switch_
  • toJavaString
  • while_
  • while_

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now