Note
Since C does not support method-overloading polymorphism like C++ or Java,
we ignore the FunctionType attribute in equals(Object) and hashCode().
Hence we assume all method occurrences w/ same name are of equal or compatible type.
Deep comparison can be performed via isCompletelyEqual(Object o);
| Modifier and Type | Field and Description |
|---|---|
| private final ASTLocusTag | |
| private final FunctionType |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static FunctionSymbol | |
| public static boolean | |
| public boolean | equals(final Object
the reference object with which to compare. arg)Overrides java. |
| public final boolean | equalSemantics(final TypeComparator.
Implements com. name.
|
| public static int | |
| public boolean | exactlyEqual(final Object arg)
Compares the function type as well, since |
| public String | |
| public Type | |
| public ASTLocusTag | getASTLocusTag()
Implements com. ASTLocusTag, if available,
otherwise returns null.
|
| public int | |
| public Type | |
| public FunctionType | |
| public int | |
| public int | hashCodeSemantics()
Implements com. name.
|
| public String | |
| public String |
| astLocus | back to summary |
|---|---|
| private final ASTLocusTag astLocus | |
| type | back to summary |
|---|---|
| private final FunctionType type | |
| FunctionSymbol | back to summary |
|---|---|
| public FunctionSymbol(final String name, final FunctionType type) | |
| FunctionSymbol | back to summary |
|---|---|
| public FunctionSymbol(final String name, final FunctionType type, final ASTLocusTag locus) | |
| FunctionSymbol | back to summary |
|---|---|
| private FunctionSymbol(final FunctionSymbol o) Warning Shallow'ish copy, only aliased names are re-created. | |
| addArgument | back to summary |
|---|---|
| public void addArgument(final Type argumentType, final String argumentName) Add an argument's name and type. Use null for unknown argument names. | |
| cloneWithDeepAliases | back to summary |
|---|---|
| public static FunctionSymbol cloneWithDeepAliases(final FunctionSymbol o) Shallow'ish copy, only aliased names are re-created. | |
| containsExactly | back to summary |
|---|---|
| public static boolean containsExactly(final List<FunctionSymbol> l, final FunctionSymbol s) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object arg) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| equalSemantics | back to summary |
|---|---|
| public final boolean equalSemantics(final TypeComparator. Implements com. Doc from com. Semantic equality test for Types exclusive its given
| |
| exactIndexOf | back to summary |
|---|---|
| public static int exactIndexOf(final List<FunctionSymbol> l, final FunctionSymbol s) | |
| exactlyEqual | back to summary |
|---|---|
| public boolean exactlyEqual(final Object arg) Compares the function type as well, since | |
| getArgumentName | back to summary |
|---|---|
| public String getArgumentName(final int i) Returns the name of the ith argument. May return null if no argument names were available during parsing. | |
| getArgumentType | back to summary |
|---|---|
| public Type getArgumentType(final int i) Returns the type of the ith argument. | |
| getASTLocusTag | back to summary |
|---|---|
| public ASTLocusTag getASTLocusTag() Implements com. Doc from com. Returns this instance's
| |
| getNumArguments | back to summary |
|---|---|
| public int getNumArguments() | |
| getReturnType | back to summary |
|---|---|
| public Type getReturnType() Returns the return type of this function. | |
| getType | back to summary |
|---|---|
| public FunctionType getType() Returns the type of this function. Do not add arguments to it directly; use addArgument instead. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hashCodeSemantics | back to summary |
|---|---|
| public int hashCodeSemantics() Implements com. Doc from com. Semantic hashcode for Types exclusive its given
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(final boolean emitNativeTag) Helper routine for emitting native javadoc tags | |