Package gw.lang.ir
Class IRClass
- java.lang.Object
-
- gw.lang.ir.IRClass
-
public class IRClass extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIRClass.InnerClassInfo
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IRAnnotation>_annotationsprivate java.util.List<IRFieldDecl>_fieldsprivate java.lang.String_genericSignatureprivate java.util.List<IRClass.InnerClassInfo>_innerClassesprivate java.util.List<IRType>_interfacesprivate java.util.List<IRMethodStatement>_methodsprivate int_modifiersprivate java.lang.String_nameprivate java.lang.String_sourceFileprivate IRType_superTypeprivate IRType_thisType
-
Constructor Summary
Constructors Constructor Description IRClass()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(IRFieldDecl field)voidaddInnerClass(IRType innerClass, IRType enclosingType, int modifiers)voidaddInterface(IRType iface)voidaddMethod(IRMethodStatement method)java.util.List<IRAnnotation>getAnnotations()java.util.List<IRFieldDecl>getFields()java.lang.StringgetGenericSignature()java.util.List<IRClass.InnerClassInfo>getInnerClasses()java.util.List<IRType>getInterfaces()java.util.List<IRMethodStatement>getMethods()intgetModifiers()java.lang.StringgetName()java.lang.StringgetSourceFile()IRTypegetSuperType()IRTypegetThisType()voidmakeGenericSignature(IType type)voidsetAnnotations(java.util.List<IRAnnotation> annotations)voidsetModifiers(int modifiers)voidsetName(java.lang.String name)voidsetSourceFile(java.lang.String sourceFile)voidsetSuperType(IRType superType)voidsetThisType(IRType thisType)
-
-
-
Field Detail
-
_modifiers
private int _modifiers
-
_name
private java.lang.String _name
-
_thisType
private IRType _thisType
-
_superType
private IRType _superType
-
_interfaces
private java.util.List<IRType> _interfaces
-
_innerClasses
private java.util.List<IRClass.InnerClassInfo> _innerClasses
-
_sourceFile
private java.lang.String _sourceFile
-
_methods
private java.util.List<IRMethodStatement> _methods
-
_fields
private java.util.List<IRFieldDecl> _fields
-
_annotations
private java.util.List<IRAnnotation> _annotations
-
_genericSignature
private java.lang.String _genericSignature
-
-
Method Detail
-
getModifiers
public int getModifiers()
-
setModifiers
public void setModifiers(int modifiers)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getThisType
public IRType getThisType()
-
setThisType
public void setThisType(IRType thisType)
-
getSuperType
public IRType getSuperType()
-
setSuperType
public void setSuperType(IRType superType)
-
addInterface
public void addInterface(IRType iface)
-
getInterfaces
public java.util.List<IRType> getInterfaces()
-
getSourceFile
public java.lang.String getSourceFile()
-
setSourceFile
public void setSourceFile(java.lang.String sourceFile)
-
addMethod
public void addMethod(IRMethodStatement method)
-
addField
public void addField(IRFieldDecl field)
-
getInnerClasses
public java.util.List<IRClass.InnerClassInfo> getInnerClasses()
-
getMethods
public java.util.List<IRMethodStatement> getMethods()
-
getFields
public java.util.List<IRFieldDecl> getFields()
-
getAnnotations
public java.util.List<IRAnnotation> getAnnotations()
-
setAnnotations
public void setAnnotations(java.util.List<IRAnnotation> annotations)
-
makeGenericSignature
public void makeGenericSignature(IType type)
-
getGenericSignature
public java.lang.String getGenericSignature()
-
-