congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ClassNode.lazyClassInit
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.codehaus.groovy/groovy

public List<ConstructorNode> getDeclaredConstructors() {
  if (redirect != null) return redirect().getDeclaredConstructors();
  lazyClassInit();
  if (constructors == null)
    constructors = new ArrayList<ConstructorNode> ();
  return constructors;
}
origin: org.codehaus.groovy/groovy

/**
 * Finds a field matching the given name in this class.
 *
 * @param name the name of the field of interest
 * @return the method matching the given name and parameters or null
 */
public FieldNode getDeclaredField(String name) {
  if (redirect != null) return redirect().getDeclaredField(name);
  lazyClassInit();
  return fieldIndex == null ? null : fieldIndex.get(name);
}
origin: org.codehaus.groovy/groovy

/**
 * @return the list of FieldNode's associated with this ClassNode
 */
public List<FieldNode> getFields() {
  if (redirect!=null) return redirect().getFields();
  lazyClassInit();
  if (fields == null)
    fields = new LinkedList<FieldNode> ();
  return fields;
}
origin: org.codehaus.groovy/groovy

public List<AnnotationNode> getAnnotations() {
  if (redirect!=null) return redirect.getAnnotations();
  lazyClassInit();
  return super.getAnnotations();
}
origin: org.codehaus.groovy/groovy

/**
 * @return the array of interfaces which this ClassNode implements
 */
public ClassNode[] getInterfaces() {
  if (redirect!=null) return redirect().getInterfaces();
  lazyClassInit();
  return interfaces;
}
origin: org.codehaus.groovy/groovy

public List<AnnotationNode> getAnnotations(ClassNode type) {
  if (redirect!=null) return redirect.getAnnotations(type);
  lazyClassInit();
  return super.getAnnotations(type);
}
origin: org.codehaus.groovy/groovy

public ClassNode [] getUnresolvedInterfaces(boolean useRedirect) {
  if (!useRedirect) return interfaces;
  if (redirect != null) return redirect().getUnresolvedInterfaces(true);
  lazyClassInit();
  return interfaces;
}
origin: org.codehaus.groovy/groovy

/**
 * @return the list of methods associated with this ClassNode
 */
public List<MethodNode> getMethods() {
  if (redirect!=null) return redirect().getMethods();
  lazyClassInit();
  return methodsList;
}
origin: org.codehaus.groovy/groovy

public ClassNode getUnresolvedSuperClass(boolean useRedirect) {
  if (!useRedirect) return superClass;
  if (redirect != null) return redirect().getUnresolvedSuperClass(true);
  lazyClassInit();
  return superClass;
}
origin: org.codehaus.groovy/groovy

/**
 * This methods returns a list of all methods of the given name
 * defined in the current class
 * @return the method list
 * @see #getMethods(String)
 */
public List<MethodNode> getDeclaredMethods(String name) {
  if (redirect!=null) return redirect().getDeclaredMethods(name);
  lazyClassInit();
  return methods.getNotNull(name);
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

public List<AnnotationNode> getAnnotations() {
  if (redirect!=null) return redirect.getAnnotations();
  lazyClassInit();
  return super.getAnnotations();
}
origin: org.kohsuke.droovy/groovy

public List getAnnotations(ClassNode type) {
  if (redirect!=null) return redirect.getAnnotations(type);
  lazyClassInit();
  return super.getAnnotations(type);
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

public List<ConstructorNode> getDeclaredConstructors() {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  final ClassNode r = redirect();
  if (r.constructors == null)
    r.constructors = new ArrayList<ConstructorNode> ();
  return r.constructors;
}
origin: org.codehaus.groovy/groovy-all-minimal

public ClassNode getUnresolvedSuperClass(boolean useRedirect) {
  if (!useRedirect) return superClass;
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  return redirect().superClass;
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

/**
 * @return the list of FieldNode's associated with this ClassNode
 */
public List<FieldNode> getFields() {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  if (redirect!=null) return redirect().getFields();
  if (fields == null)
    fields = new LinkedList<FieldNode> ();
  return fields;
}
origin: org.codehaus.groovy/groovy-all-minimal

/**
 * Returns a list containing FieldNode objects for
 * each field in the class represented by this ClassNode
 */
public List getFields() {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  if (redirect!=null) return redirect().getFields();
  return fields;
}
origin: org.codehaus.groovy/groovy-all-minimal

/**
 * Returns a list containing MethodNode objects for
 * each method in the class represented by this ClassNode
 */
public List getMethods() {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  if (redirect!=null) return redirect().getMethods();
  return methodsList;
}
origin: org.codehaus.groovy/groovy-all-minimal

/**
 * Returns an array of ClassNodes representing the
 * interfaces the class implements
 */
public ClassNode[] getInterfaces() {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  if (redirect!=null) return redirect().getInterfaces();
  return interfaces;
}
origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

/**
 * @return the list of methods associated with this ClassNode
 */
public List<MethodNode> getMethods() {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  if (redirect!=null) return redirect().getMethods();
  return methodsList;
}
origin: org.codehaus.groovy/groovy-all-minimal

/**
 * This methods returns a list of all methods of the given name
 * defined in the current class
 * @return the method list
 * @see #getMethods(String)
 */
public List getDeclaredMethods(String name) {
  if (!redirect().lazyInitDone) redirect().lazyClassInit();
  if (redirect!=null) return redirect().getDeclaredMethods(name);
  return methods.getNotNull(name);
}
org.codehaus.groovy.astClassNodelazyClassInit

Javadoc

The complete class structure will be initialized only when really needed to avoid having too many objects during compilation

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

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Permission (java.security)
    Legacy security code; do not use.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best plugins for Eclipse
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