Tabnine Logo
ClassNode.addAnnotations
Code IndexAdd Tabnine to your IDE (free)

How to use
addAnnotations
method
in
org.codehaus.groovy.ast.ClassNode

Best Java code snippets using org.codehaus.groovy.ast.ClassNode.addAnnotations (Showing top 19 results out of 315)

origin: org.codehaus.groovy/groovy

protected void enumDef(AST enumNode) {
  assertNodeType(ENUM_DEF, enumNode);
  List<AnnotationNode> annotations = new ArrayList<AnnotationNode>();
  AST node = enumNode.getFirstChild();
  int modifiers = Opcodes.ACC_PUBLIC;
  if (isType(MODIFIERS, node)) {
    modifiers = modifiers(node, annotations, modifiers);
    node = node.getNextSibling();
  }
  String name = identifier(node);
  node = node.getNextSibling();
  ClassNode[] interfaces = interfaces(node);
  node = node.getNextSibling();
  boolean syntheticPublic = ((modifiers & Opcodes.ACC_SYNTHETIC) != 0);
  modifiers &= ~Opcodes.ACC_SYNTHETIC;
  String enumName = (classNode != null ? name : dot(getPackageName(), name));
  ClassNode enumClass = EnumHelper.makeEnumNode(enumName, modifiers, interfaces, classNode);
  enumClass.setSyntheticPublic(syntheticPublic);
  ClassNode oldNode = classNode;
  enumClass.addAnnotations(annotations);
  classNode = enumClass;
  configureAST(classNode, enumNode);
  assertNodeType(OBJBLOCK, node);
  objectBlock(node);
  classNode = oldNode;
  output.addClass(enumClass);
}
origin: org.codehaus.groovy/groovy

classNode = new ClassNode(dot(getPackageName(), name), modifiers, superClass, interfaces, null);
classNode.setSyntheticPublic(syntheticPublic);
classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
classNode.addInterface(ClassHelper.Annotation_TYPE);
origin: remkop/picocli

cNode.addAnnotations(annotations);
origin: org.codehaus.groovy/groovy

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: org.codehaus.groovy/groovy

  classNode = new ClassNode(dot(getPackageName(), name), modifiers, superClass, interfaces, mixins);
classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
classNode.setSyntheticPublic(syntheticPublic);
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

protected void enumDef(AST enumNode) {
  assertNodeType(ENUM_DEF, enumNode);
  List<AnnotationNode> annotations = new ArrayList<AnnotationNode>();
  AST node = enumNode.getFirstChild();
  int modifiers = Opcodes.ACC_PUBLIC;
  if (isType(MODIFIERS, node)) {
    modifiers = modifiers(node, annotations, modifiers);
    node = node.getNextSibling();
  }
  String name = identifier(node);
  node = node.getNextSibling();
  ClassNode[] interfaces = interfaces(node);
  node = node.getNextSibling();
  boolean syntheticPublic = ((modifiers & Opcodes.ACC_SYNTHETIC) != 0);
  modifiers &= ~Opcodes.ACC_SYNTHETIC;
  String enumName = (classNode != null ? name : dot(getPackageName(), name));
  ClassNode enumClass = EnumHelper.makeEnumNode(enumName, modifiers, interfaces, classNode);
  enumClass.setSyntheticPublic(syntheticPublic);
  ClassNode oldNode = classNode;
  enumClass.addAnnotations(annotations);
  classNode = enumClass;
  configureAST(classNode, enumNode);
  assertNodeType(OBJBLOCK, node);
  objectBlock(node);
  classNode = oldNode;
  output.addClass(enumClass);
}
origin: org.codehaus.groovy/groovy-jdk14

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: org.kohsuke.droovy/groovy

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: org.codehaus.groovy/groovy-all-minimal

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: org.codehaus.groovy/groovy-jdk14

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
classNode.addInterface(ClassHelper.Annotation_TYPE);
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

classNode = new ClassNode(dot(getPackageName(), name), modifiers, superClass, interfaces, null);
classNode.setSyntheticPublic(syntheticPublic);
classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
classNode.addInterface(ClassHelper.Annotation_TYPE);
origin: org.kohsuke.droovy/groovy

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
classNode.addInterface(ClassHelper.Annotation_TYPE);
origin: hazelcast/hazelcast-jet

cNode.addAnnotations(annotations);
origin: org.codehaus.griffon/griffon-groovy-compile

returnType.addAnnotations(method.getReturnType().getAnnotations());
returnType.setGenericsTypes(method.getReturnType().getGenericsTypes());
returnType.setGenericsPlaceHolder(method.getReturnType().isGenericsPlaceHolder());
origin: org.codehaus.groovy/groovy-all-minimal

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: org.kohsuke.droovy/groovy

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: org.codehaus.groovy/groovy-jdk14

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
configureAST(classNode, classDef);
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

  classNode = new ClassNode(dot(getPackageName(), name), modifiers, superClass, interfaces, mixins);
classNode.addAnnotations(annotations);
classNode.setGenericsTypes(genericsType);
classNode.setSyntheticPublic(syntheticPublic);
org.codehaus.groovy.astClassNodeaddAnnotations

Popular methods of ClassNode

  • getName
  • getMethods
    This methods creates a list of all methods with this name of the current class and of all super clas
  • <init>
    Constructor used by makeArray() if no real class is available
  • getSuperClass
  • equals
  • addMethod
  • getAnnotations
  • addField
  • getFields
    Returns a list containing FieldNode objects for each field in the class represented by this ClassNod
  • getPlainNodeReference
  • getField
    Finds a field matching the given name in this class or a parent class.
  • getMethod
    Finds a method matching the given name and parameters in this class or any parent class.
  • getField,
  • getMethod,
  • isInterface,
  • getNameWithoutPackage,
  • isScript,
  • getDeclaredMethod,
  • getGenericsTypes,
  • getDeclaredConstructors,
  • getModifiers,
  • getTypeClass

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
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