Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.mn8.parser
Class mn8TreeWalker  view mn8TreeWalker download mn8TreeWalker.java

java.lang.Object
  extended byantlr.TreeParser
      extended byorg.media.mn8.parser.mn8TreeWalker
All Implemented Interfaces:
mn8TreeWalkerTokenTypes

public class mn8TreeWalker
extends antlr.TreeParser
implements mn8TreeWalkerTokenTypes

The final Tree Walker for mn8. This is responsible of the interpretation.
This class is automaticaly generated by ANTLR.

Version:
$Revision: 1.89 $ $Date: 2002/10/18 22:20:03 $

Field Summary
private  int _curentLineNr
          The curent code line number for error reporting.
private  java.util.Stack _eachBySignature
           
private  java.util.Stack _eachLevel
           
private  java.io.PrintStream _err
          The current error stream.
private  java.util.Hashtable _firstOfTable
           
private  boolean _isSuperInvocation
          Indicates whenever an method is invoked on the SUPER keyword
private  java.io.PrintStream _out
          The current output stream.
private  org.media.mn8.concepts.ElementConcept _previousElem
           
private  int _scopeDeep
          When we enter a scope we keep track of how deep we are this is important because if we have to leave (return, exit) then we have to pop out the scopes
private  java.lang.String _scriptName
          The currently executing script name, important for error reporting
private  org.media.mn8.ScopeStack _stack
          The current scope stack
private  org.media.mn8.mn8Concept _thisConcept
          The currently executing concept.
private  org.media.mn8.mn8ScriptMethod _thisMethod
          The currently executing method.
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
private static long[] _tokenSet_0_data_
           
static antlr.collections.impl.BitSet _tokenSet_1
           
private static long[] _tokenSet_1_data_
           
private static int CALL_CIRCUMSTANCE_INST_PARENT
           
private static int CALL_CIRCUMSTANCE_INST_THIS
           
private static int CALL_CIRCUMSTANCE_STATIC
           
private static int CALL_CIRCUMSTANCE_STATIC_PARENT
           
private static int CALL_CIRCUMSTANCE_SUPER
           
(package private)  boolean debug
          Are we in debug or not
static int lineNr
           
 boolean readyToReturn
          Flag indicating if the interpretor is ready to return or not.
private  java.util.Vector superList
           
(package private)  boolean verbose
          Are ve in verbose or not
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface org.media.mn8.parser.mn8TreeWalkerTokenTypes
ARRAY_DECLARATOR, ASCENDING, ASSIGN, ATTR, ATTRIDENT, BLOCK, BREAK, BY, CASE, CHAR_LITERAL, COLON, COMMA, CONCEPT_DEFINITION, CONDITION, DEBUG_INFO, DEC, DEFINE, DESCENDING, DIV, DIV_ASSIGN, DO, DOT, EACH, ELEM, ELEM_VALREF, ELIF, ELIF_BLOCK, ELIST, ELMETIDENTIFIER, ELSE, ELSE_BLOCK, EOF, EOL, EQUAL, ESC, EXIT, EXPONENT, EXPR, EXTENDS, FALSE, FIND, FIND_FIRST, FIND_LAST, FIRST, FROM, GE, GT, HEX_DIGIT, IDENT, IF, IF_BLOCK, IMPLEMENTS_CLAUSE, IN, INC, INCLUDE, LABEL, LAND, LAST, LBRACK, LCONT, LCURLY, LE, LNOT, LOR, LPAREN, LT, METH, METHOD_CALL, METHOD_DEFINITION, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NIL, NOT, NOT_EQUAL, NULL_TREE_LOOKAHEAD, NUM_INT, NUM_REAL, OLIST, OPTIONS, PARAMETER, PAREN_EXPR, PLUS, PLUS_ASSIGN, POST_DEC, POST_INC, PRINT, QUESTION, RANGE, RBRACK, RCURLY, RETURN, RPAREN, SEMI, SEP, SL_COMMENT, SOURCE, STAR, STAR_ASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, THEN, THIS, TIMEOUT, TO, TRUE, TYPE, TYPEOF, UNARY_MINUS, UNARY_PLUS, VARIABLE, VOCAB, WHERE, WHILE, WS
 
Constructor Summary
mn8TreeWalker()
           
 
Method Summary
private  void addByToSignatureStack(java.lang.String bySig)
           
 void ascendingBy(antlr.collections.AST _t)
           
 org.media.mn8.Concept ascendingByIterator(antlr.collections.AST _t, org.media.mn8.Concept on)
           
 org.media.mn8.Concept assignableIdentifier(antlr.collections.AST _t, org.media.mn8.Concept newValue)
           
 org.media.mn8.Concept attributeReference(antlr.collections.AST _t, org.media.mn8.Concept on, java.lang.String onType, org.media.mn8.Concept newValue)
          Attribute reference: $x@attr, XConcept@attr, @attr
(package private)  org.media.mn8.Concept attributeReferenceLogic(int call_circumstances, antlr.collections.AST root, org.media.mn8.concepts.StringConcept attributeName, org.media.mn8.Concept on, java.lang.String onType, org.media.mn8.Concept newValue)
          Helper method implementing the logic for the attribute reference.
 java.util.Vector breakExpression(antlr.collections.AST _t)
           
 antlr.collections.AST byExpression(antlr.collections.AST _t)
           
 org.media.mn8.Concept byIterator(antlr.collections.AST _t, org.media.mn8.Concept on)
           
 void byMarker(antlr.collections.AST _t)
           
 boolean caseCondition(antlr.collections.AST _t, org.media.mn8.Concept equalsWith)
           
 boolean caseConditional(antlr.collections.AST _t, boolean forWhat, org.media.mn8.Concept equalsWith)
           
 org.media.mn8.Concept characterConstant(antlr.collections.AST _t)
           
(package private)  boolean checkExpression(antlr.collections.AST expr)
           
 void cleanFirstOfTableElements(java.util.Vector by)
           
private  boolean compareEqual(java.lang.Object obj1, java.lang.Object obj2)
           
private  boolean compareLessThan(java.lang.Object obj1, java.lang.Object obj2)
           
private  boolean compareLessThanOrEqual(java.lang.Object obj1, java.lang.Object obj2)
           
private  boolean compareMoreThan(java.lang.Object obj1, java.lang.Object obj2)
           
private  boolean compareMoreThanOrEqual(java.lang.Object obj1, java.lang.Object obj2)
           
private  void computeFirstOfPositions(java.util.Vector what, java.util.Vector by, int byPos)
           
(package private)  java.lang.String computeMethodSignature(org.media.mn8.concepts.StringConcept methodName, org.media.mn8.concepts.SeriesConcept params)
          Helper method which computes a method signature, used for retrieving methods from concepts, based on the method name and a series containing the parameters of the method.
 org.media.mn8.Concept concept(antlr.collections.AST _t)
           
 boolean condition(antlr.collections.AST _t)
           
 boolean conditional(antlr.collections.AST _t, boolean forWhat)
           
 org.media.mn8.Concept constants(antlr.collections.AST _t)
           
private  java.util.Vector deepSort(java.util.Vector what, java.util.Vector by, int byPos, int left, int right)
           
 void descendingBy(antlr.collections.AST _t)
           
 org.media.mn8.Concept descendingByIterator(antlr.collections.AST _t, org.media.mn8.Concept on)
           
 void doWhileLoop(antlr.collections.AST _t)
           
 void eachBlock(antlr.collections.AST _t)
           
 org.media.mn8.Concept elementReference(antlr.collections.AST _t, org.media.mn8.Concept on, java.lang.String onType, org.media.mn8.Concept newValue)
          Element reference: $x/elem, $x/elem/, XConcept/elem, XConcept/elem/, /elem, /elem/
(package private)  org.media.mn8.Concept elementReferenceLogic(int call_circumstances, antlr.collections.AST root, org.media.mn8.concepts.StringConcept elementName, org.media.mn8.Concept on, java.lang.String onType, boolean valueRequested, org.media.mn8.Concept newValue)
          Helper method implementing the logic for the attribute reference.
 org.media.mn8.Concept executeInheritedMethod(java.lang.String inhConceptType, java.lang.String methodSig, org.media.mn8.Concept on, org.media.mn8.concepts.SeriesConcept param)
           
 org.media.mn8.Concept executeMethod(java.lang.String methodSig, org.media.mn8.Concept on, org.media.mn8.concepts.SeriesConcept param)
           
static org.media.mn8.Concept executeMethod(java.lang.String methodSig, org.media.mn8.Concept on, org.media.mn8.concepts.SeriesConcept param, int lineNr)
           
(package private)  org.media.mn8.Concept executeOp(java.lang.String op, org.media.mn8.JavaConcept op1, int line)
           
(package private)  org.media.mn8.Concept executeOp(java.lang.String op, org.media.mn8.JavaConcept op1, org.media.mn8.JavaConcept op2, int line)
           
 org.media.mn8.Concept executeStaticMethod(java.lang.String methodSig, java.lang.String concetType, org.media.mn8.concepts.SeriesConcept param)
           
static org.media.mn8.Concept executeStaticMethod(java.lang.String methodSig, java.lang.String conceptType, org.media.mn8.concepts.SeriesConcept param, int lineNr)
           
 void exit()
           
 void exitStatement(antlr.collections.AST _t)
           
 org.media.mn8.Concept expression(antlr.collections.AST _t)
           
 org.media.mn8.concepts.SeriesConcept expressionList(antlr.collections.AST _t)
          Expression list.
 org.media.mn8.Concept falseKeyword(antlr.collections.AST _t)
           
 void findFirstStatement(antlr.collections.AST _t)
           
 void findLastStatement(antlr.collections.AST _t)
           
 org.media.mn8.Concept fromExpression(antlr.collections.AST _t)
           
private  org.media.mn8.FieldDefinition getAttributeField(java.lang.String atName, org.media.mn8.Concept on, int ifErrorLine)
          Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the attributes field.
private  org.media.mn8.FieldDefinition getAttributeField(java.lang.String atName, org.media.mn8.Concept on, java.lang.String conceptType, int ifErrorLine)
          Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the attributes field.
private  org.media.mn8.Concept getAttributeValue(org.media.mn8.FieldDefinition attrField, org.media.mn8.Concept on, java.lang.String conceptType, int ifErrorLine)
           
private  int getByEachIndex(java.lang.String bySig)
           
(package private)  int getCallCircumstances(org.media.mn8.Concept parent, java.lang.String onType)
          Helper method to help determine and react on the circumstances of a method, attribute, element call.
static org.media.mn8.ConceptDefinition getConceptDefinition(org.media.mn8.Concept forConcept)
           
private  org.media.mn8.Concept getElement(org.media.mn8.FieldDefinition elField, org.media.mn8.Concept on, java.lang.String conceptType, int ifErrorLine)
           
private  org.media.mn8.FieldDefinition getElementField(java.lang.String elName, org.media.mn8.Concept on, int ifErrorLine)
          Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the element field.
private  org.media.mn8.FieldDefinition getElementField(java.lang.String elName, org.media.mn8.Concept on, java.lang.String conceptType, int ifErrorLine)
          Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the element field.
private  org.media.mn8.Concept getElementValue(org.media.mn8.FieldDefinition elField, org.media.mn8.Concept on, java.lang.String conceptType, int ifErrorLine)
           
private  java.lang.String getIdentifierSignature(antlr.collections.AST node)
           
 org.media.mn8.ScopeStack getStack()
           
private  org.media.mn8.FieldDefinition getStaticAttributeField(java.lang.String atName, java.lang.String conceptType, int ifErrorLine)
          Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the attributes field.
private  org.media.mn8.FieldDefinition getStaticElementField(java.lang.String elName, java.lang.String conceptType, int ifErrorLine)
          Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the element field.
 org.media.mn8.Concept identifier(antlr.collections.AST _t)
           
 org.media.mn8.Concept identOrConstant(antlr.collections.AST _t)
           
 void ifBlock(antlr.collections.AST _t)
           
 boolean ifThenBody(antlr.collections.AST _t)
           
 org.media.mn8.Concept integerConstant(antlr.collections.AST _t)
           
 org.media.mn8.Concept interpretationUnit(antlr.collections.AST _t, org.media.mn8.mn8Concept concept, org.media.mn8.mn8ScriptMethod thisMethod, org.media.mn8.ScopeStack scopeStack)
           
private  boolean isAscending(antlr.collections.AST node)
           
 org.media.mn8.concepts.SeriesConcept iterationSource(antlr.collections.AST _t)
           
 org.media.mn8.Concept methodInvocation(antlr.collections.AST _t, org.media.mn8.Concept on, java.lang.String onType, org.media.mn8.Concept newValue)
          Method invocation .methodName( param1, param2, ...)
(package private)  org.media.mn8.Concept methodInvocationLogic(int call_circumstances, antlr.collections.AST root, java.lang.String methodSig, org.media.mn8.concepts.SeriesConcept params, org.media.mn8.Concept on, java.lang.String onType)
          Helper method implementing the logic for the method invocation.
 org.media.mn8.Concept nilKeyword(antlr.collections.AST _t)
           
 void optionItem(antlr.collections.AST _t, org.media.mn8.concepts.MapConcept opt)
           
 org.media.mn8.concepts.MapConcept optionList(antlr.collections.AST _t, org.media.mn8.concepts.MapConcept map)
           
 org.media.mn8.concepts.SeriesConcept parameters(antlr.collections.AST _t)
          Paramters of the method call.
 org.media.mn8.Concept postfixExpression(antlr.collections.AST _t, org.media.mn8.Concept on, java.lang.String onType, org.media.mn8.Concept newValue)
           
 org.media.mn8.Concept primaryExpression(antlr.collections.AST _t)
           
 void print(antlr.collections.AST _t)
           
private  java.util.Vector quickSort(java.util.Vector what, java.util.Vector by, int byPos, int left, int right)
           
private  java.util.Vector quickSortDescending(java.util.Vector what, java.util.Vector by, int byPos, int left, int right)
           
private  java.util.Vector quickSortSwap(java.util.Vector vector, int pos1, int pos2)
           
 org.media.mn8.concepts.SeriesConcept range(antlr.collections.AST _t)
           
private  java.lang.String rangeCompareTypes(org.media.mn8.Concept from, org.media.mn8.Concept to)
           
 org.media.mn8.Concept realConstant(antlr.collections.AST _t)
           
 void reportError(java.lang.String message)
           
 void reportWarning(java.lang.String message)
           
 org.media.mn8.Concept resolveIdentifier(antlr.collections.AST i)
           
 org.media.mn8.Concept returnStatement(antlr.collections.AST _t)
           
private  void setAttributeValue(org.media.mn8.FieldDefinition attrField, org.media.mn8.Concept on, java.lang.String conceptType, org.media.mn8.Concept value, int ifErrorLine)
           
private  void setElementValue(org.media.mn8.FieldDefinition elField, org.media.mn8.Concept on, java.lang.String conceptType, org.media.mn8.Concept value, int ifErrorLine)
           
private  void setLineNr(int lineNr)
           
private  org.media.mn8.concepts.SeriesConcept sort(org.media.mn8.concepts.SeriesConcept what, java.util.Vector by)
           
 org.media.mn8.Concept statement(antlr.collections.AST _t)
           
 org.media.mn8.Concept statementBlock(antlr.collections.AST _t)
           
 org.media.mn8.Concept staticAssign(antlr.collections.AST _t, org.media.mn8.Concept newValue)
           
 org.media.mn8.Concept stringConstant(antlr.collections.AST _t)
           
 org.media.mn8.Concept superKeyword(antlr.collections.AST _t)
           
 void switchBlock(antlr.collections.AST _t)
           
 boolean switchBody(antlr.collections.AST _t, org.media.mn8.Concept equalsWith)
           
 org.media.mn8.Concept thisKeyword(antlr.collections.AST _t)
           
 void toStatement(antlr.collections.AST _t)
           
 org.media.mn8.Concept trueKeyword(antlr.collections.AST _t)
           
 org.media.mn8.Concept typeRef(antlr.collections.AST _t)
           
 org.media.mn8.Concept variableAssign(antlr.collections.AST _t, org.media.mn8.Concept newValue)
           
 org.media.mn8.Concept variableOrTypeReference(antlr.collections.AST _t)
           
 org.media.mn8.Concept variableRef(antlr.collections.AST _t)
           
 void whileDoLoop(antlr.collections.AST _t)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

boolean debug
Are we in debug or not


verbose

boolean verbose
Are ve in verbose or not


_stack

private org.media.mn8.ScopeStack _stack
The current scope stack


_firstOfTable

private java.util.Hashtable _firstOfTable

lineNr

public static int lineNr

readyToReturn

public boolean readyToReturn
Flag indicating if the interpretor is ready to return or not.


_thisConcept

private org.media.mn8.mn8Concept _thisConcept
The currently executing concept. Important for runtime information like is the current method static, and so on.


_thisMethod

private org.media.mn8.mn8ScriptMethod _thisMethod
The currently executing method. Important for runtime information like is the current method static, and so on.


superList

private java.util.Vector superList

_scriptName

private java.lang.String _scriptName
The currently executing script name, important for error reporting


_previousElem

private org.media.mn8.concepts.ElementConcept _previousElem

_curentLineNr

private int _curentLineNr
The curent code line number for error reporting.


_eachLevel

private java.util.Stack _eachLevel

_eachBySignature

private java.util.Stack _eachBySignature

_out

private java.io.PrintStream _out
The current output stream. Important only if we run it in an multithreaded environment (servlet for instance).


_err

private java.io.PrintStream _err
The current error stream. Important only if we run it in an multithreaded environment (servlet for instance).


_scopeDeep

private int _scopeDeep
When we enter a scope we keep track of how deep we are this is important because if we have to leave (return, exit) then we have to pop out the scopes


_isSuperInvocation

private boolean _isSuperInvocation
Indicates whenever an method is invoked on the SUPER keyword


CALL_CIRCUMSTANCE_INST_THIS

private static final int CALL_CIRCUMSTANCE_INST_THIS
See Also:
Constant Field Values

CALL_CIRCUMSTANCE_INST_PARENT

private static final int CALL_CIRCUMSTANCE_INST_PARENT
See Also:
Constant Field Values

CALL_CIRCUMSTANCE_STATIC

private static final int CALL_CIRCUMSTANCE_STATIC
See Also:
Constant Field Values

CALL_CIRCUMSTANCE_SUPER

private static final int CALL_CIRCUMSTANCE_SUPER
See Also:
Constant Field Values

CALL_CIRCUMSTANCE_STATIC_PARENT

private static final int CALL_CIRCUMSTANCE_STATIC_PARENT
See Also:
Constant Field Values

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0_data_

private static final long[] _tokenSet_0_data_

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1_data_

private static final long[] _tokenSet_1_data_

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1
Constructor Detail

mn8TreeWalker

public mn8TreeWalker()
Method Detail

exit

public void exit()

reportWarning

public void reportWarning(java.lang.String message)

reportError

public void reportError(java.lang.String message)

setLineNr

private void setLineNr(int lineNr)

addByToSignatureStack

private void addByToSignatureStack(java.lang.String bySig)

getByEachIndex

private int getByEachIndex(java.lang.String bySig)

getStack

public org.media.mn8.ScopeStack getStack()

checkExpression

boolean checkExpression(antlr.collections.AST expr)
                  throws antlr.RecognitionException

executeOp

org.media.mn8.Concept executeOp(java.lang.String op,
                                org.media.mn8.JavaConcept op1,
                                org.media.mn8.JavaConcept op2,
                                int line)
                          throws antlr.RecognitionException

executeOp

org.media.mn8.Concept executeOp(java.lang.String op,
                                org.media.mn8.JavaConcept op1,
                                int line)
                          throws antlr.RecognitionException

getConceptDefinition

public static org.media.mn8.ConceptDefinition getConceptDefinition(org.media.mn8.Concept forConcept)

executeStaticMethod

public org.media.mn8.Concept executeStaticMethod(java.lang.String methodSig,
                                                 java.lang.String concetType,
                                                 org.media.mn8.concepts.SeriesConcept param)

executeStaticMethod

public static org.media.mn8.Concept executeStaticMethod(java.lang.String methodSig,
                                                        java.lang.String conceptType,
                                                        org.media.mn8.concepts.SeriesConcept param,
                                                        int lineNr)

executeMethod

public org.media.mn8.Concept executeMethod(java.lang.String methodSig,
                                           org.media.mn8.Concept on,
                                           org.media.mn8.concepts.SeriesConcept param)

executeMethod

public static org.media.mn8.Concept executeMethod(java.lang.String methodSig,
                                                  org.media.mn8.Concept on,
                                                  org.media.mn8.concepts.SeriesConcept param,
                                                  int lineNr)

executeInheritedMethod

public org.media.mn8.Concept executeInheritedMethod(java.lang.String inhConceptType,
                                                    java.lang.String methodSig,
                                                    org.media.mn8.Concept on,
                                                    org.media.mn8.concepts.SeriesConcept param)

resolveIdentifier

public org.media.mn8.Concept resolveIdentifier(antlr.collections.AST i)

cleanFirstOfTableElements

public void cleanFirstOfTableElements(java.util.Vector by)

isAscending

private boolean isAscending(antlr.collections.AST node)

getIdentifierSignature

private java.lang.String getIdentifierSignature(antlr.collections.AST node)

sort

private org.media.mn8.concepts.SeriesConcept sort(org.media.mn8.concepts.SeriesConcept what,
                                                  java.util.Vector by)
                                           throws antlr.RecognitionException

quickSort

private java.util.Vector quickSort(java.util.Vector what,
                                   java.util.Vector by,
                                   int byPos,
                                   int left,
                                   int right)
                            throws antlr.RecognitionException

quickSortDescending

private java.util.Vector quickSortDescending(java.util.Vector what,
                                             java.util.Vector by,
                                             int byPos,
                                             int left,
                                             int right)
                                      throws antlr.RecognitionException

quickSortSwap

private java.util.Vector quickSortSwap(java.util.Vector vector,
                                       int pos1,
                                       int pos2)

deepSort

private java.util.Vector deepSort(java.util.Vector what,
                                  java.util.Vector by,
                                  int byPos,
                                  int left,
                                  int right)
                           throws antlr.RecognitionException

computeFirstOfPositions

private void computeFirstOfPositions(java.util.Vector what,
                                     java.util.Vector by,
                                     int byPos)
                              throws antlr.RecognitionException

compareLessThan

private boolean compareLessThan(java.lang.Object obj1,
                                java.lang.Object obj2)
                         throws antlr.RecognitionException

compareMoreThan

private boolean compareMoreThan(java.lang.Object obj1,
                                java.lang.Object obj2)
                         throws antlr.RecognitionException

compareLessThanOrEqual

private boolean compareLessThanOrEqual(java.lang.Object obj1,
                                       java.lang.Object obj2)
                                throws antlr.RecognitionException

compareEqual

private boolean compareEqual(java.lang.Object obj1,
                             java.lang.Object obj2)
                      throws antlr.RecognitionException

compareMoreThanOrEqual

private boolean compareMoreThanOrEqual(java.lang.Object obj1,
                                       java.lang.Object obj2)
                                throws antlr.RecognitionException

rangeCompareTypes

private java.lang.String rangeCompareTypes(org.media.mn8.Concept from,
                                           org.media.mn8.Concept to)

getElementField

private org.media.mn8.FieldDefinition getElementField(java.lang.String elName,
                                                      org.media.mn8.Concept on,
                                                      int ifErrorLine)
Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the element field.


getStaticElementField

private org.media.mn8.FieldDefinition getStaticElementField(java.lang.String elName,
                                                            java.lang.String conceptType,
                                                            int ifErrorLine)
Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the element field.


getElementField

private org.media.mn8.FieldDefinition getElementField(java.lang.String elName,
                                                      org.media.mn8.Concept on,
                                                      java.lang.String conceptType,
                                                      int ifErrorLine)
Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the element field.


setElementValue

private void setElementValue(org.media.mn8.FieldDefinition elField,
                             org.media.mn8.Concept on,
                             java.lang.String conceptType,
                             org.media.mn8.Concept value,
                             int ifErrorLine)

getElementValue

private org.media.mn8.Concept getElementValue(org.media.mn8.FieldDefinition elField,
                                              org.media.mn8.Concept on,
                                              java.lang.String conceptType,
                                              int ifErrorLine)

getElement

private org.media.mn8.Concept getElement(org.media.mn8.FieldDefinition elField,
                                         org.media.mn8.Concept on,
                                         java.lang.String conceptType,
                                         int ifErrorLine)

getAttributeField

private org.media.mn8.FieldDefinition getAttributeField(java.lang.String atName,
                                                        org.media.mn8.Concept on,
                                                        int ifErrorLine)
Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the attributes field.


getStaticAttributeField

private org.media.mn8.FieldDefinition getStaticAttributeField(java.lang.String atName,
                                                              java.lang.String conceptType,
                                                              int ifErrorLine)
Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the attributes field.


getAttributeField

private org.media.mn8.FieldDefinition getAttributeField(java.lang.String atName,
                                                        org.media.mn8.Concept on,
                                                        java.lang.String conceptType,
                                                        int ifErrorLine)
Helper method, having as parameters the values from the Tree Walker it will resolve if it is a static or not element reference and will act actordingly returning the attributes field.


setAttributeValue

private void setAttributeValue(org.media.mn8.FieldDefinition attrField,
                               org.media.mn8.Concept on,
                               java.lang.String conceptType,
                               org.media.mn8.Concept value,
                               int ifErrorLine)

getAttributeValue

private org.media.mn8.Concept getAttributeValue(org.media.mn8.FieldDefinition attrField,
                                                org.media.mn8.Concept on,
                                                java.lang.String conceptType,
                                                int ifErrorLine)

getCallCircumstances

int getCallCircumstances(org.media.mn8.Concept parent,
                         java.lang.String onType)
Helper method to help determine and react on the circumstances of a method, attribute, element call.


computeMethodSignature

java.lang.String computeMethodSignature(org.media.mn8.concepts.StringConcept methodName,
                                        org.media.mn8.concepts.SeriesConcept params)
Helper method which computes a method signature, used for retrieving methods from concepts, based on the method name and a series containing the parameters of the method.


methodInvocationLogic

org.media.mn8.Concept methodInvocationLogic(int call_circumstances,
                                            antlr.collections.AST root,
                                            java.lang.String methodSig,
                                            org.media.mn8.concepts.SeriesConcept params,
                                            org.media.mn8.Concept on,
                                            java.lang.String onType)
Helper method implementing the logic for the method invocation.


attributeReferenceLogic

org.media.mn8.Concept attributeReferenceLogic(int call_circumstances,
                                              antlr.collections.AST root,
                                              org.media.mn8.concepts.StringConcept attributeName,
                                              org.media.mn8.Concept on,
                                              java.lang.String onType,
                                              org.media.mn8.Concept newValue)
Helper method implementing the logic for the attribute reference.


elementReferenceLogic

org.media.mn8.Concept elementReferenceLogic(int call_circumstances,
                                            antlr.collections.AST root,
                                            org.media.mn8.concepts.StringConcept elementName,
                                            org.media.mn8.Concept on,
                                            java.lang.String onType,
                                            boolean valueRequested,
                                            org.media.mn8.Concept newValue)
Helper method implementing the logic for the attribute reference.


interpretationUnit

public final org.media.mn8.Concept interpretationUnit(antlr.collections.AST _t,
                                                      org.media.mn8.mn8Concept concept,
                                                      org.media.mn8.mn8ScriptMethod thisMethod,
                                                      org.media.mn8.ScopeStack scopeStack)
                                               throws antlr.RecognitionException

statement

public final org.media.mn8.Concept statement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException