Class JClassRef

java.lang.Object
com.inductiveautomation.snap.javatree.JClassRef

public class JClassRef extends Object
This class represents a JFile class reference, so that classes don't have to be resolved until the last moment.
  • Constructor Details

    • JClassRef

      public JClassRef(String aName, JFile aFile)
      Creates a new class ref for a name.
  • Method Details

    • getName

      public String getName()
      Returns the class name.
    • getRefClass

      public Class getRefClass()
      Returns the class.
    • isArray

      public boolean isArray()
      Returns whether this class is array.
    • getComponentTypeRef

      public JClassRef getComponentTypeRef()
      Return component class if array.
    • getComponentTypeRefImpl

      public JClassRef getComponentTypeRefImpl()
      Return component class reference for array.
    • getComponentTypeName

      public String getComponentTypeName()
      Return component class if array.
    • getComponentTypeNameImpl

      protected String getComponentTypeNameImpl()
      Returns the component type name.
    • getField

      @Nullable public Field getField(@Nullable String aName)
      Returns a field.
    • getMethod

      @Nullable public Method getMethod(String aName, Class[] theArgClasses)
      Returns a Method for name and list of arg expressions.
    • getClassRef

      public JClassRef getClassRef(String aName)
      Returns a JClassRef for inner class with given name, if one exists.
    • getEnclosingClass

      public JClassRef getEnclosingClass()
      Returns the enclosing class ref.
    • getSuperClassRef

      public JClassRef getSuperClassRef()
      Returns the super class ref.
    • toString

      public String toString()
      Standard toString implementation.
      Overrides:
      toString in class Object