public class Method extends Field implements IItemWithOffset, TypeInsertable
| Modifier and Type | Field and Description |
|---|---|
private Block |
block |
private ExceptionList |
exceptionlist |
protected static Logger |
inferencelog |
private boolean |
isAbstract |
private int |
m_LineNumber |
private int |
m_Offset |
private int |
overloadedID
HOTI 4.5.06
Dieser Vektor beinhaltet alle Generischen Typen und v.a. die
F-Bounded-Generics, die die Methode besitzt
size()==0, falls es keine gibt
|
ParameterList |
parameterlist |
protected static Logger |
parserlog |
private Type |
returntype |
private Menge<java.lang.String> |
types_in_parameterlist |
parent| Constructor and Description |
|---|
Method(int offset) |
Method(java.lang.String name,
Type returnType,
ParameterList parameterList,
Block block,
GenericDeclarationList gtvDeclarations,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
static Method |
createEmptyMethod(java.lang.String withSignature,
Class parent) |
TypeAssumptions |
createTypeAssumptions(Class classmember)
Liefert die MethodAssumption zu dieser Methode
|
boolean |
equals(java.lang.Object obj) |
Block |
get_Block() |
ExceptionList |
get_ExceptionList() |
java.lang.String |
get_Method_Name() |
Menge |
get_Type_Paralist() |
Menge<SyntaxTreeNode> |
getChildren() |
int |
getLineNumber() |
int |
getOffset() |
int |
getOverloadedID() |
int |
getParameterCount()
Author: Jrg Buerle
|
ParameterList |
getParameterList() |
Type |
getType()
Der Typ einer Methode ist ihr Returntype
|
java.lang.String |
getTypeInformation() |
int |
getTypeLineNumber()
Author: Jrg Buerle |
JavaClassName |
getTypeName() |
int |
getVariableLength() |
boolean |
isAbstract()
Gibt zurueck, ob ByteCode innerhabl der Methode
generiert wird.
|
void |
parserPostProcessing(SyntaxTreeNode parent)
Wird nach dem Parsen aufgerufen.
|
JavaCodeResult |
printJavaCode(ResultSet resultSet) |
void |
set_Block(Block blo) |
void |
set_ExceptionList(ExceptionList exlist) |
void |
set_Method_Name(java.lang.String string) |
void |
set_Modifiers(Modifiers modif) |
void |
setAbstract(boolean b)
Legt fuer die ByteCodeGen fest, ob Bytecode
innerhalb der Methode generiert wird.
|
void |
setLineNumber(int lineNumber) |
void |
setOffset(int Offset) |
void |
setOverloadedID(int overloadedID) |
void |
setParameterList(ParameterList paralist) |
private void |
setReturnType(Type type)
Author: Jrg Buerle |
void |
setType(Type t) |
java.lang.String |
toString()
Author: Martin Pl�micke |
ConstraintsSet |
TYPE(TypeAssumptions ass) |
void |
wandleRefTypeAttributes2GenericAttributes(Menge<Type> classParalist)
Wird im Zuge des ParserPostProcessing aufgerufen.
|
createTypeInsertPoint, get_Name, getDeclIdMenge, getDescription, getGenericDeclarationList, getGenericParameter, getGenericVarDeclarationOffset, getGenericVarDeclarationString, getIdentifier, isClass, isPublic, set_DeclId, setDeclIdMenge, setGenericParametergetGTVDeclarationContextaddTypeInsertPoints, getMatchingParentNode, getParent, getParentClass, seesTypeclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTypeInsertPoint, getIdentifierprivate Block block
public ParameterList parameterlist
private ExceptionList exceptionlist
private Type returntype
private int overloadedID
private boolean isAbstract
private Menge<java.lang.String> types_in_parameterlist
private int m_LineNumber
private int m_Offset
protected static Logger inferencelog
protected static Logger parserlog
public Method(int offset)
public Method(java.lang.String name,
Type returnType,
ParameterList parameterList,
Block block,
GenericDeclarationList gtvDeclarations,
int offset)
public JavaClassName getTypeName()
public Block get_Block()
private void setReturnType(Type type)
type - public void set_Block(Block blo)
public void set_Modifiers(Modifiers modif)
public void set_ExceptionList(ExceptionList exlist)
public void setParameterList(ParameterList paralist)
public ParameterList getParameterList()
public int getParameterCount()
public ExceptionList get_ExceptionList()
public int getOverloadedID()
public void setOverloadedID(int overloadedID)
public java.lang.String get_Method_Name()
public Menge get_Type_Paralist()
public int getLineNumber()
public void setLineNumber(int lineNumber)
public int getOffset()
getOffset in interface IItemWithOffsetgetOffset in interface TypeInsertablegetOffset in class Fieldpublic int getVariableLength()
getVariableLength in interface IItemWithOffsetpublic void setOffset(int Offset)
setOffset in interface TypeInsertablesetOffset in class Fieldpublic int getTypeLineNumber()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setAbstract(boolean b)
public boolean isAbstract()
public void wandleRefTypeAttributes2GenericAttributes(Menge<Type> classParalist)
FieldwandleRefTypeAttributes2GenericAttributes in class Fieldpublic void set_Method_Name(java.lang.String string)
public ConstraintsSet TYPE(TypeAssumptions ass)
public java.lang.String getTypeInformation()
public JavaCodeResult printJavaCode(ResultSet resultSet)
printJavaCode in class Fieldpublic TypeAssumptions createTypeAssumptions(Class classmember)
createTypeAssumptions in class Fieldpublic void parserPostProcessing(SyntaxTreeNode parent)
SyntaxTreeNodeparserPostProcessing in class SyntaxTreeNodepublic Menge<SyntaxTreeNode> getChildren()
getChildren in class Fieldpublic void setType(Type t)
public Type getType()
public static Method createEmptyMethod(java.lang.String withSignature, Class parent)
public boolean equals(java.lang.Object obj)
equals in class SyntaxTreeNode