|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.gluegen.cgram.types.FunctionSymbol
public class FunctionSymbol
Describes a function symbol, which includes the name and type. Since we are currently only concerned with processing functions this is the only symbol type, though plausibly more types should be added and a true symbol table constructed during parsing.
Constructor Summary | |
---|---|
FunctionSymbol(String name,
FunctionType type)
|
Method Summary | |
---|---|
void |
addArgument(Type argumentType,
String argumentName)
Add an argument's name and type. |
boolean |
equals(Object arg)
|
String |
getArgumentName(int i)
Returns the name of the ith argument. |
Type |
getArgumentType(int i)
Returns the type of the ith argument. |
String |
getName()
|
int |
getNumArguments()
|
Type |
getReturnType()
Returns the return type of this function. |
FunctionType |
getType()
Returns the type of this function. |
int |
hashCode()
|
String |
toString()
|
String |
toString(boolean emitNativeTag)
Helper routine for emitting native javadoc tags |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FunctionSymbol(String name, FunctionType type)
Method Detail |
---|
public String getName()
public FunctionType getType()
public Type getReturnType()
public int getNumArguments()
public String getArgumentName(int i)
public Type getArgumentType(int i)
public void addArgument(Type argumentType, String argumentName)
public String toString()
toString
in class Object
public String toString(boolean emitNativeTag)
public int hashCode()
hashCode
in class Object
public boolean equals(Object arg)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |