|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--antlr.BaseAST
|
+--antlr.CommonAST
|
+--org.omegahat.Environment.Parser.Parse.BasicExpression
|
+--org.omegahat.Environment.Parser.Parse.ClassDefinition
Representation of the parsed input defining an interpreted class with its field and method declarations.
| Field Summary | |
protected List |
body
A collection of elements within this class: constructors, fields and methods. |
protected Method |
constructors
Table of the constructor functions for the class created during the evaluation of this expression and used in the Java class created to implement this one. |
protected List |
fields
List of the field definitions declared in the input source which are converted into Java fields in the compiled class or the table of fields in the interpreted version. |
protected List |
interfaces
List of the interface classes this class implements. |
protected MethodsCollection |
methods
Collection of the different Method
objects indexed by method name and storing the different interpreted functions
with this name. |
protected Name |
name
The name of the class, including package information |
protected Name |
superClass
The name of the class that this one extends. |
| Fields inherited from class org.omegahat.Environment.Parser.Parse.BasicExpression |
children, comments, isActive, parent, POST, PRE |
| Fields inherited from class antlr.BaseAST |
down, right |
| Constructor Summary | |
ClassDefinition(Name name,
Name superClass,
List Interfaces,
List body)
|
|
| Method Summary | |
Method |
addMethod(java.lang.String nm,
FunctionExpression expr,
Evaluator evaluator)
|
List |
body()
|
List |
body(List l)
|
Method |
constructors()
|
Method |
constructors(Method l)
|
java.lang.Object |
eval(Evaluator evaluator)
|
List |
fields()
|
List |
fields(List l)
|
List |
interfaces()
|
List |
interfaces(List l)
|
MethodsCollection |
methods()
|
MethodsCollection |
methods(MethodsCollection t)
|
Name |
name()
|
Name |
name(Name n)
|
Name |
superClass()
|
Name |
superClass(Name n)
|
| Methods inherited from class org.omegahat.Environment.Parser.Parse.BasicExpression |
addChild, addComment, apply, apply, apply, children, children, comment, comment, depth, error, eval, evalInit, evaluationFrame, evaluator, getReferencedVariables, getReferencedVariables, getReferencedVariables, isActive, isActive, parent, parent, postComment, postComment, preComment, preComment, render, replaceChild, resolve, run, setParent, setParent, setParent, setParent, showComments, showComments, subset, substitute, substitute, toString |
| Methods inherited from class antlr.CommonAST |
getText, getType, initialize, initialize, initialize, setText, setType |
| Methods inherited from class antlr.BaseAST |
addChild, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Name name
protected Name superClass
protected List interfaces
protected List body
protected Method constructors
protected List fields
protected MethodsCollection methods
Method
objects indexed by method name and storing the different interpreted functions
with this name.| Constructor Detail |
public ClassDefinition(Name name,
Name superClass,
List Interfaces,
List body)
| Method Detail |
public java.lang.Object eval(Evaluator evaluator)
throws java.lang.Throwable
eval in class BasicExpression
public Method addMethod(java.lang.String nm,
FunctionExpression expr,
Evaluator evaluator)
throws java.lang.Throwable
public List body(List l)
public List body()
public Name name()
public Name name(Name n)
public Name superClass()
public Name superClass(Name n)
public List interfaces()
public List interfaces(List l)
public Method constructors()
public Method constructors(Method l)
public List fields()
public List fields(List l)
public MethodsCollection methods()
public MethodsCollection methods(MethodsCollection t)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||