JavaConstructor Class
- public class JavaConstructor
extends JavaMember
-
Hierarchy
-
Object
DefaultElement
DefaultTreeElement
DefaultDocumentElement
DefaultSourceElement
JavaElement
JavaModifierSupport
JavaMember
JavaConstructor
-
All Implemented Interfaces
-
IDocumentElement
, IElement
, ISourceElement
, IStructureFeature.IStructureNode
, ITreeElement
Methods from com.bea.ide.lang.java.element.JavaModifierSupport |
getAbstract , getDefaultPropertyDescriptors , getFinal , getNative , getStatic , getStrictFloatingPoint , getSynchronized , getTransient , getVolatile , mergePropertyDescriptors , setAbstract , setFinal , setNative , setStatic , setStrictFloatingPoint , setSynchronized , setTransient , setVolatile
|
Methods from com.bea.ide.sourceeditor.element.DefaultSourceElement |
addChild , createAuthorNode , debugDump , equals , getChildrenByClass , getClassLoader , getCookie , getDefaultPropertyDescriptors , getDiagnostics , getGroup , getInstanceName , getProperty , getPropertyCode , getPropertyDescriptors , getPropertySourceRange , getPropertySourceRanges , getPropertySourceText , getPropertySourceText , getRange , getRange , getStatus , initializeRange , initializeRange , insertChild , isAuthorProperty , markRemovedFromTree , mergeElements , mergeFrom , propertyModified , removeChild , removeChild , replaceChild , requestAddChild , requestAddChild , requestRemoveChild , requestSetProperty , setProperty , setStatus
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface com.bea.ide.sourceeditor.element.ISourceElement |
createAuthorNode , getCookie , getDiagnostics , getPropertyCode , getRange , getStatus , mergeFrom , requestAddChild , requestAddChild , requestRemoveChild , requestSetProperty
|
JavaConstructor
public JavaConstructor()
- Creates a new object containing a null cookie. This constructor should be used by callers constructing objects
that are not part of an active parse tree, such as those to be added via two-way edit.
JavaConstructor
public JavaConstructor(Object
compilerCookie)
- Creates a new object containing the specified cookie. This constructor should only be called by
ILanguageBuilder
implementations.
argsToString() Method
public String
argsToString()
Returns a user-friendly string listing the arguments to this constructor.
getDefaultPropertyDescriptors() Method
public DefaultSourceElement.CompilerPropertyDescriptor
[] getDefaultPropertyDescriptors()
Objects of this type define the following properties:
JavaConstructor.PROP_THROWS
: The 'throws' clause for this constructor.
Additionally, all DefaultSourceElement derivations also inherit all properties
returned by getDefaultPropertyDescriptors
from all super classes.
-
Overrides
-
JavaMember.getDefaultPropertyDescriptors()
getRangePrefetchProperties() Method
protected Set
getRangePrefetchProperties()
Returns a Set of IStructureFeature.StructureCode objects. This set defines those properties that will
contain range information in the parse tree. Constructors do not pre-fetch range for their 'throws' property
due to a compiler bug.
-
Overrides
-
DefaultSourceElement.getRangePrefetchProperties()
getThrownExceptions() Method
public String
[] getThrownExceptions()
Gets the set of exceptions thrown by this JavaMethod
getTypeCode() Method
public IStructureFeature.StructureCode
getTypeCode()
This method returns a code used by the compiler to identify the type of this element.
This method should not be called directly, since the return value isn't useful outside
of the compiler.
-
Overrides
-
DefaultSourceElement.getTypeCode()
Returns
- A compiler structure code identifying the type of this element.
setThrownExceptions(String[]) Method
public void setThrownExceptions(String
[] exceptions)
Sets the types of exceptions thrown by this JavaMethod
toString() Method
public String
toString()
Returns a user-friendly string describing the signature of this constructor.
-
Overrides
-
JavaMember.toString()
visit(JavaVisitor, Object) Method
public Object
visit(JavaVisitor
v,
Object
arg)
Provides JavaVisitor
support for this element type.
-
Overrides
-
JavaElement.visit(JavaVisitor, Object)
Parameters
-
v
- The visitor
-
arg
- An argument to the visit, to be interpreted by the visitor.
Returns
- Object returned by the visitor.