|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJNode
org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJMember
org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJType
| Field Summary | |
|---|---|
protected JPackage |
jPackage
|
| Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
|---|
EMPTY_STRING_ARRAY, facadeHelper, qualifiedName, wrappedObject |
| Constructor Summary | |
|---|---|
JDOMJType(org.eclipse.jdt.core.jdom.IDOMType type)
|
|
| Method Summary | |
|---|---|
void |
addSuperInterface(java.lang.String interfaceName)
Adds the given interface name to the names of interfaces that this type implements or extends (the name will be added after the existing interface names). |
protected java.lang.String |
computeQualifiedName()
|
protected org.eclipse.jdt.core.jdom.IDOMType |
getIDOMType()
|
java.lang.String |
getSuperclass()
Returns the name of this type's superclass. |
java.lang.String[] |
getSuperInterfaces()
Returns the names of interfaces that this type implements or extends, in the order in which they are listed in the source, or an empty array if no superinterfaces are present. |
java.lang.String[] |
getTypeParameters()
Returns the formal type parameters for this type. |
void |
setSuperclass(java.lang.String superclassName)
Sets the name of this type's superclass. |
void |
setSuperInterfaces(java.lang.String[] interfaceNames)
Sets the names of interfaces that this type implements or extends, in the order in which they are to be listed in the source. |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJMember |
|---|
getComment, getContents, getFlags, getIDOMMember, setComment, setFlags, splitLastComment |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJNode |
|---|
getChildren, getIDOMNode, getName, getParent |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
|---|
computeQualifiedName, computeQualifiedName, computeQualifiedName, dispose, getFacadeHelper, getName, getQualifiedName, getWrappedObject, setFacadeHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JMember |
|---|
getComment, setComment |
| Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode |
|---|
getChildren, getContents, getFlags, getName, getParent, getQualifiedName, setFlags |
| Field Detail |
protected JPackage jPackage
| Constructor Detail |
public JDOMJType(org.eclipse.jdt.core.jdom.IDOMType type)
| Method Detail |
protected org.eclipse.jdt.core.jdom.IDOMType getIDOMType()
public java.lang.String getSuperclass()
JType"Object", or "java.io.File".
As of J2SE 1.5, the superclass may also include parameterized
types like "ArrayList<String>".
getSuperclass in interface JTypenull if this type represents
an interface or if no superclass has been assigned to this classpublic void setSuperclass(java.lang.String superclassName)
JTypenull name indicates that no
superclass name (extends clause) should appear in the source code.
The syntax for a superclass name is specified by Super in ClassDeclaration
(JLS2 8.1). Type names must be specified as they would appear in source code.
For example: "Object", or "java.io.File".
As of J2SE 1.5, the superclass may also include parameterized
types like "ArrayList<String>".
setSuperclass in interface JTypesuperclassName - the superclass name, or null if this type
should have to no explicitly specified superclasspublic java.lang.String[] getSuperInterfaces()
JType"Cloneable",
or "java.io.Serializable".
As of J2SE 1.5, superinterfaces may also include parameterized
types like "List<String>".
For classes, this method returns the interfaces that this class implements. For interfaces, this method returns the interfaces that this interface extends.
getSuperInterfaces in interface JTypepublic void setSuperInterfaces(java.lang.String[] interfaceNames)
JType"Cloneable", or "java.io.Serializable".
As of J2SE 1.5, superinterfaces may also include parameterized
types like "List<String>".
For classes, this method sets the interfaces that this class implements. For interfaces, this method sets the interfaces that this interface extends.
setSuperInterfaces in interface JTypeinterfaceNames - the list of interface namespublic void addSuperInterface(java.lang.String interfaceName)
JType
addSuperInterface in interface JTypeinterfaceName - the syntax for an interface name is defined by
Interfaces in ClassDeclaration (JLS2 8.1). Type names must be specified as they would
appear in source code. For example: "Cloneable", "java.io.Serializable".public java.lang.String[] getTypeParameters()
JTypeFormal type parameters are as they appear in the source
code; for example:
"X extends List<String> & Serializable".
getTypeParameters in interface JTypeprotected java.lang.String computeQualifiedName()
computeQualifiedName in class AbstractJNode
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||