org.media.mn8
Class mn8JavaMethod

java.lang.Object
  |
  +--org.media.mn8.Concept
        |
        +--org.media.mn8.JavaConcept
              |
              +--org.media.mn8.mn8JavaMethod
All Implemented Interfaces:
mn8Method
Direct Known Subclasses:
CameleonJavaMethod, mn8ScriptMethod

public class mn8JavaMethod
extends JavaConcept
implements mn8Method


Field Summary
protected  String _declaringConcept
           
protected  boolean _isStatic
           
protected  Method _method
           
protected  Vector _paramTypes
           
protected  String _returnType
           
 int lineNr
           
 AttributeConcept name
           
 
Fields inherited from class org.media.mn8.Concept
_conceptLabel, _isHidden, _resourceURI, _showEmpty
 
Constructor Summary
mn8JavaMethod()
           
mn8JavaMethod(Method method, String[] paramTypes, String declaringConcept, String returnType)
           
mn8JavaMethod(String fromClass, boolean isStatic, String javaSig, String mn8Sig, String declaringConcept, String returnType)
          One form of the constructor.
mn8JavaMethod(String name, Method method, boolean isStatic, Vector paramTypes, String declaringConcept, String returnType)
           
mn8JavaMethod(String fromClass, String javaSig, String mn8Sig, String declaringConcept, String returnType)
          One form of the constructor.
 
Method Summary
 Object clone()
           
 void createFromFormalDef(String fromClass, boolean isStatic, String javaSig, String mn8Sig, String declaringConcept, String returnType)
           
 boolean equals(Object obj)
           
protected  Method findDeepMethod(Concept on, String signature)
           
 ConceptDefinition getConceptDefinition()
           
 StringConcept getDeclaringConcept()
           
 int getLineNr()
           
protected  String getMethodNameFromJavaSig(String javaSig)
           
protected  Class[] getMethodParamsFromJavaSig(String javaSig)
           
 StringConcept getMethodSignature()
           
static mn8Method getMethodUsingInheritance(String signature, Vector methods)
           
 SeriesConcept getModifiers()
           
 StringConcept getName()
           
 SeriesConcept getParameterNames()
           
 SeriesConcept getParameterTypes()
           
 StringConcept getReturnType()
           
 String getSignature()
           
 int hashCode()
           
 LogicalConcept hasReturn()
           
 Concept invoke(Concept on, SeriesConcept parameters)
           
 Concept invoke(String conceptDef, SeriesConcept parameters)
           
 LogicalConcept isStatic()
           
 void setLineNr(int lineNr)
           
 StringConcept toTXT()
           
 StringConcept toXML()
           
 
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, getConceptInstance, 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

name

public AttributeConcept name

_isStatic

protected boolean _isStatic

_declaringConcept

protected String _declaringConcept

_paramTypes

protected Vector _paramTypes

_method

protected Method _method

_returnType

protected String _returnType

lineNr

public int lineNr
Constructor Detail

mn8JavaMethod

public mn8JavaMethod()

mn8JavaMethod

public mn8JavaMethod(String fromClass,
                     boolean isStatic,
                     String javaSig,
                     String mn8Sig,
                     String declaringConcept,
                     String returnType)
One form of the constructor.

Parameters:
fromClass - The Java class where the described method belongs
javaSig - the signature of the java method: like insert:org.media.mn8.Concept,org.media...
mn8Sig - the signature of the mn8 method: like insert:Integer,Concept
declaringConcept - The type of the concept where this method belongs: Concept
returnType - null or the concept type of the returning value

mn8JavaMethod

public mn8JavaMethod(String fromClass,
                     String javaSig,
                     String mn8Sig,
                     String declaringConcept,
                     String returnType)
One form of the constructor.

Parameters:
fromClass - The Java class where the described method belongs
javaSig - the signature of the java method: like insert:org.media.mn8.Concept,org.media...
mn8Sig - the signature of the mn8 method: like insert:Integer,Concept
declaringConcept - The type of the concept where this method belongs: Concept
returnType - null or the concept type of the returning value

mn8JavaMethod

public mn8JavaMethod(Method method,
                     String[] paramTypes,
                     String declaringConcept,
                     String returnType)

mn8JavaMethod

public mn8JavaMethod(String name,
                     Method method,
                     boolean isStatic,
                     Vector paramTypes,
                     String declaringConcept,
                     String returnType)
Method Detail

createFromFormalDef

public void createFromFormalDef(String fromClass,
                                boolean isStatic,
                                String javaSig,
                                String mn8Sig,
                                String declaringConcept,
                                String returnType)

getName

public StringConcept getName()
Specified by:
getName in interface mn8Method

isStatic

public LogicalConcept isStatic()
Specified by:
isStatic in interface mn8Method

getDeclaringConcept

public StringConcept getDeclaringConcept()
Specified by:
getDeclaringConcept in interface mn8Method

hasReturn

public LogicalConcept hasReturn()
Specified by:
hasReturn in interface mn8Method

getReturnType

public StringConcept getReturnType()
Specified by:
getReturnType in interface mn8Method

invoke

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

invoke

public Concept invoke(String conceptDef,
                      SeriesConcept parameters)
Specified by:
invoke in interface mn8Method

getParameterTypes

public SeriesConcept getParameterTypes()
Specified by:
getParameterTypes in interface mn8Method

getParameterNames

public SeriesConcept getParameterNames()

getModifiers

public SeriesConcept getModifiers()
Specified by:
getModifiers in interface mn8Method

getMethodSignature

public StringConcept getMethodSignature()

getSignature

public String getSignature()
Specified by:
getSignature in interface mn8Method

toTXT

public StringConcept toTXT()
Overrides:
toTXT in class JavaConcept

toXML

public StringConcept toXML()
Overrides:
toXML in class JavaConcept

getConceptDefinition

public ConceptDefinition getConceptDefinition()
Overrides:
getConceptDefinition in class JavaConcept

getMethodUsingInheritance

public static mn8Method getMethodUsingInheritance(String signature,
                                                  Vector methods)

equals

public boolean equals(Object obj)
Specified by:
equals in interface mn8Method
Overrides:
equals in class JavaConcept

hashCode

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

findDeepMethod

protected Method findDeepMethod(Concept on,
                                String signature)

getMethodNameFromJavaSig

protected String getMethodNameFromJavaSig(String javaSig)

getMethodParamsFromJavaSig

protected Class[] getMethodParamsFromJavaSig(String javaSig)

clone

public Object clone()
Overrides:
clone in class JavaConcept

getLineNr

public int getLineNr()
Specified by:
getLineNr in interface mn8Method

setLineNr

public void setLineNr(int lineNr)
Specified by:
setLineNr in interface mn8Method


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