Tabnine Logo
TypeCastParser.getContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getContext
method
in
com.oracle.truffle.dsl.processor.parser.TypeCastParser

Best Java code snippets using com.oracle.truffle.dsl.processor.parser.TypeCastParser.getContext (Showing top 4 results out of 315)

origin: com.oracle.truffle/truffle-dsl-processor

@Override
public TypeCastData create(TemplateMethod method, boolean invalid) {
  TypeMirror targetType = resolveCastOrCheck(method);
  TypeMirror sourceType = getContext().getType(Object.class);
  return new TypeCastData(method, sourceType, targetType);
}
origin: com.oracle/truffle-dsl-processor

@Override
public TypeCastData create(TemplateMethod method, boolean invalid) {
  TypeMirror targetType = resolveCastOrCheck(method);
  TypeMirror sourceType = getContext().getType(Object.class);
  return new TypeCastData(method, sourceType, targetType);
}
origin: com.oracle.truffle/truffle-dsl-processor

@Override
public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) {
  TypeMirror targetTypeMirror = ElementUtils.getAnnotationValue(TypeMirror.class, mirror, "value");
  ParameterSpec returnTypeSpec = new ParameterSpec("returnType", targetTypeMirror);
  returnTypeSpec.setAllowSubclasses(false);
  MethodSpec spec = new MethodSpec(returnTypeSpec);
  spec.addRequired(new ParameterSpec("value", getContext().getType(Object.class)));
  return spec;
}
origin: com.oracle/truffle-dsl-processor

@Override
public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) {
  TypeMirror targetTypeMirror = ElementUtils.getAnnotationValue(TypeMirror.class, mirror, "value");
  ParameterSpec returnTypeSpec = new ParameterSpec("returnType", targetTypeMirror);
  returnTypeSpec.setAllowSubclasses(false);
  MethodSpec spec = new MethodSpec(returnTypeSpec);
  spec.addRequired(new ParameterSpec("value", getContext().getType(Object.class)));
  return spec;
}
com.oracle.truffle.dsl.processor.parserTypeCastParsergetContext

Popular methods of TypeCastParser

  • <init>
  • parse
  • resolveCastOrCheck

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Collectors (java.util.stream)
  • Top 12 Jupyter Notebook extensions
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