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, _resourceURI, _showEmpty
 
Constructor Summary
mn8ScriptMethod()
           
mn8ScriptMethod(antlr.collections.AST codeASTNode, String[] tokenNames)
          Responsible of generating the mn8ScriptMethod from the script method def.
mn8ScriptMethod(String name, boolean isStatic, Vector paramTypes, Vector paramNames, mn8ConceptDefinition declaringConcept, String returnType)
           
 
Method Summary
 void addCodeASTPiece(antlr.collections.AST pieceAST)
           
static void cleanAll()
           
 Object clone()
           
 boolean equals(Object obj)
           
 Concept getConceptInstance()
           
 StringConcept getDeclaringConcept()
           
 SeriesConcept getParameterNames()
           
 String getSignature()
           
static String getSignature(String methodName, Object[] paramTypes)
           
static String getSignatureFromVect(String methodName, Vector paramTypes)
           
 int hashCode()
           
 Concept invoke(Concept on, SeriesConcept parameters)
           
 Concept invoke(String conceptType, SeriesConcept parameters)
           
 Concept invokeErrorHandler(Concept setplace, SeriesConcept parameters)
           
 Concept invokeErrorHandler(String setplace, SeriesConcept parameters)
           
static boolean ismn8SrcriptMethod(antlr.collections.AST codeASTNode, 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, getResourceURI, hasConceptAttribute, hasConceptAttribute, hasConceptElement, hasConceptElement, hasConceptMethod, hasPath, hasPath, isHidden, loadContent, printFields, printFields, searchDeeperForPath, searchSubElements, setConceptLabel, setErrorHandler, setHidden, setResourceURI, 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(String name,
                       boolean isStatic,
                       Vector paramTypes,
                       Vector paramNames,
                       mn8ConceptDefinition declaringConcept,
                       String returnType)

mn8ScriptMethod

public mn8ScriptMethod(antlr.collections.AST codeASTNode,
                       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,
                                         String[] tokenNames)

getDeclaringConcept

public StringConcept getDeclaringConcept()
Specified by:
getDeclaringConcept in interface mn8Method
Overrides:
getDeclaringConcept in class mn8JavaMethod

invoke

public Concept invoke(Concept on,
                      SeriesConcept parameters)
Specified by:
invoke in interface mn8Method
Overrides:
invoke in class mn8JavaMethod

invoke

public Concept invoke(String conceptType,
                      SeriesConcept parameters)
Specified by:
invoke in interface mn8Method
Overrides:
invoke in class mn8JavaMethod

invokeErrorHandler

public Concept invokeErrorHandler(String setplace,
                                  SeriesConcept parameters)

invokeErrorHandler

public Concept invokeErrorHandler(Concept setplace,
                                  SeriesConcept parameters)

getConceptInstance

public Concept getConceptInstance()
Overrides:
getConceptInstance in class Concept

getSignature

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

getSignatureFromVect

public static String getSignatureFromVect(String methodName,
                                          Vector paramTypes)

getSignature

public String getSignature()
Specified by:
getSignature in interface mn8Method
Overrides:
getSignature in class mn8JavaMethod

hashCode

public int hashCode()
Specified by:
hashCode in interface mn8Method
Overrides:
hashCode in class mn8JavaMethod

equals

public boolean equals(Object obj)
Specified by:
equals in interface mn8Method
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 Object clone()
Overrides:
clone in class mn8JavaMethod

getParameterNames

public SeriesConcept getParameterNames()
Overrides:
getParameterNames in class mn8JavaMethod


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."