| |
|
| java.lang.Object gnu.expr.Expression gnu.expr.ScopeExp gnu.expr.LambdaExp gnu.expr.ClassExp
All known Subclasses: gnu.expr.ObjectExp,
Constructor Summary | |
public | ClassExp() | public | ClassExp(ClassType type) Create a ClassExp object to represent an existing class. |
accessFlags | int accessFlags(Code) | | |
forNamedesiredAssertionStatusgetProperty | final static Method forNamedesiredAssertionStatusgetProperty(Code) | | |
instanceType | ClassType instanceType(Code) | | The class of instances of this class.
Same as super.type unless isMakingClassPair(), in which case super.type
is an interface, and instanceType is a class implementing the interface.
Using an interface plus a class gives us true multiple inheritance.
|
makeClassPair | boolean makeClassPair(Code) | | |
needsConstructor | public boolean needsConstructor(Code) | | |
partsDeclared | boolean partsDeclared(Code) | | |
supers | public Expression[] supers(Code) | | List of base classes and implemented interfaces.
|
ClassExp | public ClassExp()(Code) | | |
ClassExp | public ClassExp(ClassType type)(Code) | | Create a ClassExp object to represent an existing class.
This ClassExp will not be compiled to a new class.
|
addMethod | public ReferenceExp addMethod(LambdaExp method, boolean isPrivate)(Code) | | Add a method to this class.
the expression that should be used to call that method. |
addMethod | public ReferenceExp addMethod(LambdaExp method)(Code) | | Add a method to this class.
the expression that should be used to call that method. |
getAssertionEnabledField | public Field getAssertionEnabledField()(Code) | | |
getImplMethods | static void getImplMethods(ClassType interfaceType, String mname, Type[] paramTypes, Vector vec)(Code) | | Return implementation method matching name and param types.
Used when compiling a pair class and generating a concrete method
implementing an interface method, to find static implementation method
in this or super implementation class we need to call.
Parameters: interfaceType - search the implementation classes correspondingto this interface type and its super-interfaces. Parameters: mname - method name to look for. Parameters: paramTypes - method types to look for. Parameters: vec - where to place found methodsIf a method is found, don't search super-interfaces, as the found methodis more specific and overrides any that might in super-interfaces. |
instantiate | final public Expression instantiate()(Code) | | Return code to create an instance of this class.
The instance is initialized by calling the default constructor.
|
isInterface | public boolean isInterface()(Code) | | |
isMakingClassPair | public boolean isMakingClassPair()(Code) | | True if we should make a pair of an interface and a class.
|
isSimple | public boolean isSimple()(Code) | | |
recomputeInterfaces | public void recomputeInterfaces()(Code) | | |
setAccessFlags | public void setAccessFlags(int value)(Code) | | |
setMakingClassPair | public void setMakingClassPair(boolean val)(Code) | | |
setSimple | public void setSimple(boolean value)(Code) | | |
slotToMethodName | public static String slotToMethodName(String prefix, String sname)(Code) | | Mangle a "slot" name to a get- or set- method name.
|
|
|
|