| java.lang.Object tide.classsyntax.IDChainElement
IDChainElement | final public class IDChainElement (Code) | | Part of an expresion chain like a.b.c()
can be a Constructor, a Method, a Class (static), a Field, a local variable.
Managed from IDChain.
TODO: really simplify.
|
isClassCast | public boolean isClassCast(Code) | | |
isPrimitiveType | public boolean isPrimitiveType(Code) | | |
IDChainElement | public IDChainElement(IDChain iDResolver, String methodName, String args, boolean enforceMethod, boolean enforceConstructor)(Code) | | Use for methods such as "super()" or "hello(12)"
|
getArrayDepth | public int getArrayDepth()(Code) | | |
getName | public String getName()(Code) | | Name of method or field or class, unresolved.
For example length() in String.length().
|
getTypeMaybeResolved | public String getTypeMaybeResolved()(Code) | | Either class name of reflectedObject (if class) or resolvedType type if non null or the simple type name.
For methods and fields, this gives the return type, NOT the declaring class. (use the method in IDChain for that)
|
getTypeMaybeUnresolved | public String getTypeMaybeUnresolved()(Code) | | For example "String" or "java.lang.String".
Declaring type of this element.
|
isResolved | public boolean isResolved()(Code) | | Used to know if chains are valid or not
|
setIsConstructorCall | public void setIsConstructorCall(String typeName)(Code) | | Called when "this" or "super" calls.
|
setIsDirectClassCall | public void setIsDirectClassCall()(Code) | | For example in the code "Integer.MAX_VALUE"
|
setIsPackagePart | public void setIsPackagePart(FileItem fi)(Code) | | Just the name of fi match, for example the "javax" package may be present in several
libs!=> don't walk from this fi.
|
setTypeName | public void setTypeName(String t)(Code) | | Maybe unresolved.
|
setTypeParameters | public void setTypeParameters(String p)(Code) | | As for the type Vector in Vector
|
setTypeWithParamsAndResolve | public void setTypeWithParamsAndResolve(String tp)(Code) | | For example. String[] or LLjava.lang.String;; or Vector<String> for variables...
These are the types as declared, for example in arguments (String[]).
This is the declaring type of this element.
|
|
|