|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.transjvm.MemberID net.sf.transjvm.ConstructorID
public class ConstructorID
This class is used for referencing constructors.
Constructor Summary | |
---|---|
ConstructorID(TypeID type)
Creates a ConstructorID with no parameters. |
|
ConstructorID(TypeID type,
TypeID... params)
Creates a ConstructorID with any number of parameters. |
|
ConstructorID(TypeID type,
TypeID param)
Creates a ConstructorID with one parameter. |
|
ConstructorID(TypeID type,
TypeID param0,
TypeID param1)
Creates a ConstructorID with two parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
TypeID[] |
getParameters()
Returns the parameter types of this constructor Warning: This method is provided for verification purposes, not for code generation and is slow. |
int |
hashCode()
|
Expression |
newInstance()
Creates a new Object and invokes this constructor no arguments. |
Expression |
newInstance(Expression... arguments)
Creates a new Object and invokes this constructor with several arguments. |
Methods inherited from class net.sf.transjvm.MemberID |
---|
getOwningClass, getRef |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstructorID(TypeID type)
type
- The class to be constructedpublic ConstructorID(TypeID type, TypeID param)
type
- The class to be constructedparam
- The parameterpublic ConstructorID(TypeID type, TypeID param0, TypeID param1)
type
- The class to be constructedparam0
- The first parameterparam1
- The second parameterpublic ConstructorID(TypeID type, TypeID... params)
type
- Description of the Parameterparams
- Parameters of this constructor.Method Detail |
---|
public TypeID[] getParameters()
public boolean equals(java.lang.Object o)
equals
in class MemberID
public int hashCode()
hashCode
in class MemberID
public Expression newInstance()
public Expression newInstance(Expression... arguments)
arguments
- Arguments for the constructor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |