| java.lang.Object tide.classsyntax.IDChain
IDChain | final public class IDChain (Code) | | Resolves the types for a parsed ID chain as in
"frame.add(" => "javax.swing.jframe" and method "add"
Is called for completion purposes with an ID parsed before a "." or a "(".
TODO: lazy search for local variables when no syntax tree available.
|
posInSource | final public int posInSource(Code) | | |
IDChain | public IDChain(ParsedID pid, FileItem source, SimpleDocument doc, int posInSource, String enteredItem, SingleClassLoader scl)(Code) | | Parameters: enteredItem - is "." or "(" it allow to determine if the last element is a field or a method or constructor.because the elt is not already in the document and then not in pid. |
getClassForName | public Class getClassForName(String jn)(Code) | | javax.swing.JTree => assoc class. null on exceptions.
|
getDeclaringClassForField | public FileItem getDeclaringClassForField(IDChainElement field)(Code) | | May return null if not found or on errors.
reference field receives the reflected object, if found.
The field may be a direct inner class call, as in test.A$CCC [Feb2008]
|
getDeclaringClassForMethod | public FileItem getDeclaringClassForMethod(IDChainElement method)(Code) | | The class declaring the method, taken from the previous chain component.
[Mar2008]: was not ok for method that has a field as parent...
|
getDeclaringClassForMethodOrField | public FileItem getDeclaringClassForMethodOrField(IDChainElement methodOrField)(Code) | | Field is also used for direct class call.
Method is also used for Constructors.
|
getLastChainComponent | public IDChainElement getLastChainComponent()(Code) | | null if none. Used in the completion and popups. |
isConstructorMode | public boolean isConstructorMode()(Code) | | If new preceeds the id.
as in new Throwable("Hello").printStackTrace();
or new javax.swing.JFrame("Hello")
as you see, the constructor may NOT be the elt at chain end !
so use the last element kind to know the kind of the chain, NOT this.
This, if true, means that the first "(" is a constructor, all next "(" are
method calles
|
isValid | public boolean isValid()(Code) | | |
locateTypeUsingImports | public FileItem locateTypeUsingImports(String name)(Code) | | To use for the first element (that lies in the source).
|
locateTypeUsingStaticImports | public FileItem locateTypeUsingStaticImports(String name, boolean isMethod, SingleClassLoader scl)(Code) | | To use for the first element (that lies in the source).
|
|
|