public class JClassDecl extends JMemberDecl
| Modifier and Type | Class and Description |
|---|---|
static class |
JClassDecl.ClassType |
| Constructor and Description |
|---|
JClassDecl() |
| Modifier and Type | Method and Description |
|---|---|
JClassDecl |
getClassDecl(java.lang.String aName)
Returns the class declaration for class name.
|
JClassDecl[] |
getClassDecls()
Returns the class constructor declarations.
|
protected java.lang.String |
getClassNameImpl()
Returns the class name.
|
JClassDecl.ClassType |
getClassType()
Returns the class type.
|
JConstructorDecl |
getConstructorDecl(java.lang.String aName,
java.lang.Class[] theClasses)
Returns the JConstructorDecl for given name.
|
JConstructorDecl[] |
getConstructorDecls()
Returns the class constructor declarations.
|
java.util.List<JEnumConstant> |
getEnumConstants()
Returns the list of enum constants.
|
java.util.List<JType> |
getExtendsTypes()
Returns the extends list.
|
JFieldDecl[] |
getFieldDecls()
Returns the class field declarations.
|
java.util.List<JType> |
getImplementsTypes()
Returns the implements list.
|
java.lang.Class[] |
getInterfaces()
Returns implemented interfaces.
|
protected java.lang.Class[] |
getInterfacesImpl()
Returns implemented interfaces.
|
java.util.List<JMemberDecl> |
getMemberDecls()
Returns the list of member declarations.
|
JMethodDecl |
getMethodDecl(java.lang.String aName,
java.lang.Class[] theClasses)
Returns the JMethodDecl for given name.
|
JMethodDecl[] |
getMethodDecls()
Returns the class method declarations.
|
protected java.lang.String |
getNameImpl()
Returns the simple name.
|
java.lang.String |
getNodeString()
Returns the part name.
|
java.lang.String |
getSimpleName()
Returns the simple name.
|
java.lang.Class |
getSuperClass()
Returns the superclass.
|
JClassRef |
getSuperClassRef()
Returns the superclass.
|
java.util.List<JTypeParam> |
getTypeParameters()
Returns the JTypeParameters.
|
JVariableDecl |
getVariableDeclInside(java.lang.String aName)
Returns a variable with given name.
|
java.util.List<JVariableDecl> |
getVariableDecls(java.lang.String aPrefix,
java.util.List<JVariableDecl> theVariables)
Returns a variable with given name.
|
boolean |
isAnonymousClass()
Returns whether class is anonymous class.
|
boolean |
isInterface()
Returns whether class type is Interface.
|
void |
setClassType(JClassDecl.ClassType aType)
Sets the class type.
|
void |
setMemberDecls(java.util.List<JMemberDecl> theMDs)
Sets the list of member declarations.
|
void |
setTypeParameters(java.util.List<JTypeParam> theTPs)
Sets the JTypeParameters.
|
getDeclaringClass, getIdentifier, getModifiers, getSuperMember, getSuperMemberImpl, getTypeParameter, setIdentifier, setModifiersaddChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toStringpublic java.lang.String getSimpleName()
public java.util.List<JTypeParam> getTypeParameters()
getTypeParameters in class JMemberDeclpublic void setTypeParameters(java.util.List<JTypeParam> theTPs)
public java.util.List<JType> getExtendsTypes()
public java.util.List<JType> getImplementsTypes()
public java.util.List<JEnumConstant> getEnumConstants()
@Nullable protected java.lang.String getNameImpl()
getNameImpl in class JMemberDeclprotected java.lang.String getClassNameImpl()
getClassNameImpl in class JNodepublic JClassRef getSuperClassRef()
@Nullable public java.lang.Class getSuperClass()
public java.lang.Class[] getInterfaces()
protected java.lang.Class[] getInterfacesImpl()
public JClassDecl.ClassType getClassType()
public void setClassType(JClassDecl.ClassType aType)
public boolean isInterface()
public boolean isAnonymousClass()
public java.util.List<JMemberDecl> getMemberDecls()
public void setMemberDecls(java.util.List<JMemberDecl> theMDs)
public JFieldDecl[] getFieldDecls()
public JMethodDecl[] getMethodDecls()
public JMethodDecl getMethodDecl(java.lang.String aName, java.lang.Class[] theClasses)
public JConstructorDecl[] getConstructorDecls()
public JConstructorDecl getConstructorDecl(java.lang.String aName, java.lang.Class[] theClasses)
public JClassDecl getClassDecl(java.lang.String aName)
public JClassDecl[] getClassDecls()
public JVariableDecl getVariableDeclInside(java.lang.String aName)
getVariableDeclInside in class JNodepublic java.util.List<JVariableDecl> getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables)
getVariableDecls in class JNodepublic java.lang.String getNodeString()
getNodeString in class JNode