|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.BrahmsObject gov.nasa.arc.brahms.common.data.ModelElement gov.nasa.arc.brahms.common.data.Invocation
public abstract class Invocation
Invocation is an abstract class that captures the common aspects of Java method invocations and constructor invocations
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOGGER
The logger used to log messages |
Fields inherited from interface gov.nasa.arc.brahms.common.IConstants |
---|
ABORT, ACTIVECLASS, ACTIVECONCEPT, ACTIVEINSTANCE, AGENT, ANONYMOUS, ANYAGENT, AREA, AREADEF, ASSIGNED, ATTRIBUTE, BASEAREADEF, BASECLASS, BASECONCEPTUALCLASS, BASEGROUP, BASELIBRARY, BOOLEAN, BROADCAST, BUILDING, BYTE, CCLOCK, CDATE, CHAR, CITY, CLASS, CLOCK, COLLECTALL, COMMUNICATE, COMPLETE, COMPOSITE, COMPUTER, CONCEPT, CONCEPTUALCLASS, CONCEPTUALCONCEPT, CONCEPTUALOBJECT, CONTINUE, COPY, CREATEAGENT, CREATEAREA, CREATEOBJECT, current, CURRENT, DATAFRAME, DATE, DB, DETECTABLE, DIV, DOUBLE, EMAIL, EMPTY_STRING, END, ENDACTIVITY, ENTAGENT, EQ, EXCEPTION, EXPR, FACE2FACE, FACTFRAME, FALSE, FAX, FLOAT, FOREACH, FORONE, G2, GE, GEOGRAPHYCONCEPT, GESTURE, GET, GROUP, GT, IMPASSE, INT, INVALID, JAVA, JAVA_TYPE, KNOWN_MODIFIER, KNOWNVAL_MODIFIER, LE, LOCAL, LONG, LT, MAP, MINUS, MOD, MOVE, MULT, NE, NEW, NONE, NOT_MODIFIER, NOWORK, O, OA, OBJECT, ONTOLOGY, PAGER, PARAMETER, PATH, PHONE, PLUS, PRIMITIVE, PRIVATE, PROAGENT, PROTECTED, PRSAGENT, PUBLIC, PUT, RECEIVE, RELATION, sACTIVECLASS, sACTIVECONCEPT, sACTIVEINSTANCE, sAGENT, sARCHIVE, sAREA, sAREADEF, sBOOLEAN, sBYTE, sBYTECODEEXT, sCHAR, sCLASS, sCOMPUTER, sCONCEPT, sCONCEPTUALCLASS, sCONCEPTUALCONCEPT, sCONCEPTUALOBJECT, sCOPY, sCURRENT, sDETECTABLE, sDOUBLE, sEMAIL, sEND, SEND, sFACE2FACE, sFAX, sFILEEXT, sFLOAT, sGEOGRAPHYCONCEPT, sGROUP, SHORT, SIMAGENT, sINT, sJAVA_TYPE, sLONG, sMAP, sNEW, sNONE, sNOWORK, sOBJECT, SOURCECODE, sPAGER, sPARAMETER, sPATH, sPHONE, sPRIVATE, sPROJECTEXT, sPROTECTED, sPUBLIC, sSHORT, sSTART, sSTRING, sSYMBOL, START, STRING, sUNKNOWN, sVOID, SYMBOL, TRUE, UDT, UML, UNASSIGNED, UNDEFINED, unknown, UNKNOWN, UNKNOWN_MODIFIER, V, VARIABLE, VOID, WHENEVER, WORKFRAME, WORLD, XML |
Constructor Summary | |
---|---|
Invocation()
Creates an empty instance of Invocation representing an abstract Java invocation |
|
Invocation(java.lang.String file,
int line)
Creates an empty instance of Invocation representing an abstract Java invocation at a given line in a source file |
Method Summary | |
---|---|
boolean |
addArgument(IExpression exp)
Adds the specified expression to the list of argument expressions specified for this invocation. |
int |
getArgumentNumber()
Return the number of arguments passed in the invocation |
java.util.List<IExpression> |
getArguments()
Returns a list of all the argument expressions specified for this invocation. |
Type[] |
getBrahmsParameterTypes()
Returns the array of Brahms parameter types for the constructor or method to be invoked |
ModelElement |
getOwner()
Returns the 'owner' of this invocation. |
int |
getParameterNumber()
Return the number of parameters derived from the method or constructor signature |
void |
getParameters(java.util.LinkedList ll)
Adds to a supplied list all the parameters used in the expression. |
java.lang.Class<?>[] |
getParameterTypes()
Returns the array of parameter types to be used to look up at runtime a suitable constructor or method for the invocation |
void |
getVariables(java.util.LinkedList ll)
Adds to a supplied list all the variables used in the expression. |
boolean |
hasArguments()
Returns whether this invocation has any argument expressions specified for the referenced method or constructor. |
boolean |
isVarArgs()
Returns whether the constructor or method to be invoked takes a variable number of arguments |
protected void |
parseParameterTypes(java.lang.String typeDescriptors)
Parses a type descriptor string that represents the types of the parameters of the constructor or method to be invoked. |
void |
setBrahmsParameterTypes(Type[] types)
Sets the array of Brahms parameter types for the constructor or method to be invoked |
void |
setOwner(ModelElement owner)
Sets the 'owner' of this invocation. |
void |
setParameterTypes(java.lang.Class<?>[] types)
Sets the array of parameter types to be used to look up at runtime a suitable constructor or method for the invocation |
void |
setVarArgs(boolean varargs)
Sets whether the constructor or method to be invoked takes a variable number of arguments |
Methods inherited from class gov.nasa.arc.brahms.common.data.BrahmsObject |
---|
delete, export, getFile, getID, getLine, getSerialNumber, isBCC, isDynamic, isLoaded, isResolved, setBCC, setDynamic, setFile, setID, setID, setLine, setLoaded, setResolved, setSerialNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nasa.arc.brahms.common.data.IExpression |
---|
export, getCollectType, setCollectType |
Field Detail |
---|
public static final org.apache.log4j.Logger LOGGER
Constructor Detail |
---|
public Invocation()
public Invocation(java.lang.String file, int line)
file
- the file in which the Java invocation is specifiedline
- the line number in the file at which the Java invocation
is specifiedMethod Detail |
---|
public boolean addArgument(IExpression exp)
exp
- the argument IExpression to be added
IExpression
public boolean hasArguments()
public int getArgumentNumber()
public java.util.List<IExpression> getArguments()
IExpression
public void setParameterTypes(java.lang.Class<?>[] types)
types
- an array of Class objects for the parameter typespublic java.lang.Class<?>[] getParameterTypes()
public void setBrahmsParameterTypes(Type[] types)
types
- an array of Brahms Type objects for the parameter typespublic Type[] getBrahmsParameterTypes()
public int getParameterNumber()
public void setVarArgs(boolean varargs)
varargs
- true if the constructor or method takes a variable number of arguments, else falsepublic boolean isVarArgs()
public void setOwner(ModelElement owner)
owner
- the ModelElement in which the invocation is specifiedpublic ModelElement getOwner()
protected void parseParameterTypes(java.lang.String typeDescriptors)
typeDescriptors
- the String describing the parameter typespublic void getVariables(java.util.LinkedList ll)
getVariables
in interface IExpression
ll
- the LinkedList to which to add the variables used in the expression.public void getParameters(java.util.LinkedList ll)
getParameters
in interface IExpression
ll
- the LinkedList to which to add the parameters used in the operand.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |