|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.expressions.ActionJavaExpr
This class models an action statement of the inference engine. The possible statements can be simple method calls, variable declaration, assignment or including, removing and modifying objects from the object base.
Field Summary | |
static int |
ASSIGN
Constant used to indicate that an expression type is an assignment. |
static int |
CREATE
Constant used to indicate that an expression type is an assertion to the object base. |
static int |
DECLAR
Constant used to indicate that an expression type is a (local) declaration. |
static int |
DELETE
Constant used to indicate that an expresison type is a deletion of an object to object base. |
static int |
METHOD
Constant used to indicate that an expression type is a method call. |
static int |
MODIFY
Constant used to indicate that this expression is a modified statement. |
Constructor Summary | |
ActionJavaExpr(int type,
JavaExpr expression)
Class constructor. |
|
ActionJavaExpr(int type,
java.lang.String ident,
JavaExpr expression)
Class constructor for assignment statements. |
|
ActionJavaExpr(int type,
java.lang.String className,
java.lang.String ident,
JavaExpr expression)
Class constructor for declaration statements. |
Method Summary | |
void |
dump()
Prints the tree for the expression of this precondition. |
void |
dump(int spaces)
Prints the tree for the expression of this precondition. |
java.lang.String |
getClassName()
Returns the class name of a locally declared object, if applicable. |
JavaExpr |
getExpression()
Returns the expression that will produce the object to be inserted in the object base, or the RHS of the assignment, if applicable. |
java.lang.String |
getIdent()
Returns the variable identifier, in case of a method call or the LHS of an assignment. |
java.lang.String |
getMethodName()
Returns the name of the method to be invoked, if applicable. |
int |
getType()
Returns the type of this expression. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int METHOD
public static final int CREATE
public static final int DELETE
public static final int ASSIGN
public static final int DECLAR
public static final int MODIFY
Constructor Detail |
public ActionJavaExpr(int type, java.lang.String className, java.lang.String ident, JavaExpr expression)
type
- the type of this action statement. It must be
equals to ActionJavaExpr.DECLARclassName
- the class of the object being declared.ident
- the identifier of the object being declared.expression
- the initializer for the object being
declared. It can be null
.DECLAR
public ActionJavaExpr(int type, java.lang.String ident, JavaExpr expression)
type
- the type of this action statement. It must be
equals to ActionJavaExpr.ATRIBident
- the identifier of the LHS of the assignment.expression
- the RHS of the assignment.ASSIGN
public ActionJavaExpr(int type, JavaExpr expression)
type
- the type of this action statement.expression
- the expression that is either being
executed, inserted into, removed from or modified in
the object base.METHOD
,
CREATE
,
DELETE
,
ASSIGN
,
DECLAR
,
MODIFY
Method Detail |
public void dump()
public void dump(int spaces)
spaces
- the identation for the printed output.public java.lang.String getClassName()
public JavaExpr getExpression()
public java.lang.String getIdent()
public java.lang.String getMethodName()
public int getType()
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |