org.media.mn8
Class mn8ScriptMethod

java.lang.Object
  |
  +--org.media.mn8.Concept
        |
        +--org.media.mn8.JavaConcept
              |
              +--org.media.mn8.mn8JavaMethod
                    |
                    +--org.media.mn8.mn8ScriptMethod
All Implemented Interfaces:
mn8Method

public class mn8ScriptMethod
extends mn8JavaMethod


Field Summary
static ScopeStack _cmStack
           
 
Fields inherited from class org.media.mn8.mn8JavaMethod
_declaringConcept, _isStatic, _method, _paramTypes, _returnType, lineNr, name
 
Fields inherited from class org.media.mn8.Concept
_conceptLabel, _isHidden, _showEmpty
 
Constructor Summary
mn8ScriptMethod()
           
mn8ScriptMethod(antlr.collections.AST codeASTNode, java.lang.String[] tokenNames)
          Responsible of generating the mn8ScriptMethod from the script method def.
mn8ScriptMethod(java.lang.String name, boolean isStatic, java.util.Vector paramTypes, java.util.Vector paramNames, mn8ConceptDefinition declaringConcept, java.lang.String returnType)
           
 
Method Summary
 void addCodeASTPiece(antlr.collections.AST pieceAST)
           
static void cleanAll()
           
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 Concept getConceptInstance()
           
 StringConcept getDeclaringConcept()
           
 java.lang.String getSignature()
           
static java.lang.String getSignature(java.lang.String methodName, java.lang.Object[] paramTypes)
           
static java.lang.String getSignatureFromVect(java.lang.String methodName, java.util.Vector paramTypes)
           
 int hashCode()
           
 Concept invoke(Concept on, SeriesConcept parameters)
           
 Concept invoke(java.lang.String conceptType, SeriesConcept parameters)
           
 Concept invokeErrorHandler(Concept setplace, SeriesConcept parameters)
           
 Concept invokeErrorHandler(java.lang.String setplace, SeriesConcept parameters)
           
static boolean ismn8SrcriptMethod(antlr.collections.AST codeASTNode, java.lang.String[] tokenNames)
           
 void setCodeAST(antlr.collections.AST codeAST)
           
 StringConcept toTXT()
           
 StringConcept toXML()
           
 
Methods inherited from class org.media.mn8.mn8JavaMethod
createFromFormalDef, findDeepMethod, getConceptDefinition, getLineNr, getMethodNameFromJavaSig, getMethodParamsFromJavaSig, getMethodSignature, getMethodUsingInheritance, getModifiers, getName, getParameterTypes, getReturnType, hasReturn, isStatic, setLineNr
 
Methods inherited from class org.media.mn8.JavaConcept
create, equals, opEQ
 
Methods inherited from class org.media.mn8.Concept
areThereMoreElemenents, cloneConcept, extendsConcept, getAllInheritedConcepts, getAttributeValue, getConceptAttribute, getConceptAttribute, getConceptAttributeField, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptNamed, getConceptOperators, getConceptsAtPath, getConceptsAtPath, getConceptType, getErrorHandler, getInheritedConcepts, getMeAllElements, hasConceptAttribute, hasConceptAttribute, hasConceptElement, hasConceptElement, hasConceptMethod, hasPath, hasPath, isHidden, loadContent, printFields, printFields, searchDeeperForPath, searchSubElements, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, subAttributeGetConcept, subAttributeHasPath, subElementGetConcepts, subElementHasPath
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cmStack

public static ScopeStack _cmStack
Constructor Detail

mn8ScriptMethod

public mn8ScriptMethod()

mn8ScriptMethod

public mn8ScriptMethod(java.lang.String name,
                       boolean isStatic,
                       java.util.Vector paramTypes,
                       java.util.Vector paramNames,
                       mn8ConceptDefinition declaringConcept,
                       java.lang.String returnType)

mn8ScriptMethod

public mn8ScriptMethod(antlr.collections.AST codeASTNode,
                       java.lang.String[] tokenNames)
Responsible of generating the mn8ScriptMethod from the script method def.
Parameters:
codeASTNode - AST Node, probably if it is a concept def, will be the root node.
tokenNames - the token names as returned by the parser.
See Also:
Parser, AST
Method Detail

cleanAll

public static void cleanAll()

ismn8SrcriptMethod

public static boolean ismn8SrcriptMethod(antlr.collections.AST codeASTNode,
                                         java.lang.String[] tokenNames)

getDeclaringConcept

public StringConcept getDeclaringConcept()
Overrides:
getDeclaringConcept in class mn8JavaMethod

invoke

public Concept invoke(Concept on,
                      SeriesConcept parameters)
Overrides:
invoke in class mn8JavaMethod

invoke

public Concept invoke(java.lang.String conceptType,
                      SeriesConcept parameters)
Overrides:
invoke in class mn8JavaMethod

invokeErrorHandler

public Concept invokeErrorHandler(java.lang.String setplace,
                                  SeriesConcept parameters)

invokeErrorHandler

public Concept invokeErrorHandler(Concept setplace,
                                  SeriesConcept parameters)

getConceptInstance

public Concept getConceptInstance()
Overrides:
getConceptInstance in class Concept

getSignature

public static java.lang.String getSignature(java.lang.String methodName,
                                            java.lang.Object[] paramTypes)

getSignatureFromVect

public static java.lang.String getSignatureFromVect(java.lang.String methodName,
                                                    java.util.Vector paramTypes)

getSignature

public java.lang.String getSignature()
Overrides:
getSignature in class mn8JavaMethod

hashCode

public int hashCode()
Overrides:
hashCode in class mn8JavaMethod

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class mn8JavaMethod

setCodeAST

public void setCodeAST(antlr.collections.AST codeAST)

addCodeASTPiece

public void addCodeASTPiece(antlr.collections.AST pieceAST)

toTXT

public StringConcept toTXT()
Overrides:
toTXT in class mn8JavaMethod

toXML

public StringConcept toXML()
Overrides:
toXML in class mn8JavaMethod

clone

public java.lang.Object clone()
Overrides:
clone in class mn8JavaMethod


"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."