aspoev.primitive
Class StaticPrimitive
java.lang.Object
aspoev.primitive.StaticPrimitive
- All Implemented Interfaces:
- aspoev.Executable, pJ.jasmine.PRI, java.io.Serializable
- Direct Known Subclasses:
- RuntimePrimitive, StaticMethodPrimitive
- public class StaticPrimitive
- extends java.lang.Object
- implements pJ.jasmine.PRI, aspoev.Executable
This class encapsulates primitives on the aspoev framework which
have no runtime implications. These primitives are declared in the
following manner in the command line environment:
// Single type
edit (Type) {
... // Valid Vejal sytax
}
// Multiple types
edit (Type, Type, ... Type) {
...
}
// All types
edit (*) {
...
}
The Vejal block associated with a static primitive is executed
once for every type which is specified in the type list. In the
Vejal block, the type is accessible under the variable name 'Type'
and is itself of type ClassDeclarationElement.
- See Also:
- Serialized Form
| Fields inherited from interface pJ.jasmine.PRI |
DELETECHANGE, MODIFYCHANGE, NOCHANGE |
|
Method Summary |
protected void |
declarePrimitiveVariables()
|
java.lang.Object |
execute()
Executes this static primitive's execution block once for each
associated type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
typeVariable
protected VariableReferenceElement typeVariable
effectedTypes
protected transient java.util.Collection effectedTypes
action
protected StatementElement action
StaticPrimitive
public StaticPrimitive(java.util.Collection typeList,
aspoev.Executable statement)
StaticPrimitive
public StaticPrimitive(BlockElement statement)
StaticPrimitive
protected StaticPrimitive()
declarePrimitiveVariables
protected void declarePrimitiveVariables()
execute
public java.lang.Object execute()
- Executes this static primitive's execution block once for each
associated type.
- Specified by:
execute in interface aspoev.Executable