|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.abstraction.DefaultConstructor
public class DefaultConstructor
Default constructor of class types.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Field Summary | |
|---|---|
protected ClassType |
ownerClass
|
protected ProgramModelInfo |
service
|
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Constructor Summary | |
|---|---|
DefaultConstructor(ClassType ownerClass)
Create a new default constructor for the given class type. |
|
| Method Summary | |
|---|---|
DefaultConstructor |
deepClone()
|
java.util.List<? extends AnnotationUse> |
getAnnotations()
Returns a list of Annotations. |
java.lang.String |
getBinaryName()
Returns the binary name. |
ClassTypeContainer |
getContainer()
Returns the enclosing class type. |
ClassType |
getContainingClassType()
Returns the logical parent class of this member. |
java.util.List<ClassType> |
getExceptions()
Returns the (empty) exception list of this constructor. |
java.lang.String |
getFullName()
Returns the maximal expanded name including all applicable qualifiers. |
java.lang.String |
getName()
Returns the name of this element. |
Package |
getPackage()
Returns the package this element is defined in. |
ProgramModelInfo |
getProgramModelInfo()
Returns the instance that can retrieve information about this program model element. |
Type |
getReturnType()
Returns the return type of this method. |
java.util.List<Type> |
getSignature()
Returns the (empty) signature of this constructor. |
java.util.List<? extends TypeParameter> |
getTypeParameters()
|
java.util.List<? extends ClassType> |
getTypes()
Returns the (empty) list of class types locally defined within this container. |
boolean |
isAbstract()
Checks if this member is abstract. |
boolean |
isFinal()
Checks if this member is final. |
boolean |
isNative()
Checks if this member is native. |
boolean |
isPrivate()
Checks if this member is private. |
boolean |
isProtected()
Checks if this member is protected. |
boolean |
isPublic()
Checks if this member is public. |
boolean |
isStatic()
Checks if this member is static. |
boolean |
isStrictFp()
Checks if this member is strictfp. |
boolean |
isSynchronized()
Checks if this member is synchronized. |
boolean |
isVarArgMethod()
Checks if this method takes a variable number of arguments. |
void |
setProgramModelInfo(ProgramModelInfo service)
Sets the instance that can retrieve information about this program model element. |
void |
validate()
Check consistency and admissibility of a construct, e.g. cardinality of participants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ProgramModelInfo service
protected ClassType ownerClass
| Constructor Detail |
|---|
public DefaultConstructor(ClassType ownerClass)
ownerClass - the owner class of this constructor.| Method Detail |
|---|
public ProgramModelInfo getProgramModelInfo()
getProgramModelInfo in interface ProgramModelElementpublic void setProgramModelInfo(ProgramModelInfo service)
setProgramModelInfo in interface ProgramModelElementservice - the program model info for this element.
public void validate()
throws ModelException
ModelElementrecoder.java.statement.If
has a boolean parameter as condition,
recoder.service.SemanticsChecker
validate in interface ModelElementModelExceptionSemanticsCheckerpublic boolean isFinal()
isFinal in interface Memberfalse.public boolean isStatic()
isStatic in interface Membertrue.public boolean isPrivate()
isPrivate in interface Memberfalse.public boolean isProtected()
isProtected in interface Memberfalse.public boolean isPublic()
isPublic in interface Membertrue, if the containing class type is public,
false otherwise.public boolean isStrictFp()
isStrictFp in interface Memberfalse.public boolean isAbstract()
isAbstract in interface Methodfalse.Constructorpublic boolean isNative()
isNative in interface Methodfalse.Constructorpublic boolean isSynchronized()
isSynchronized in interface Methodfalse.Constructorpublic ClassType getContainingClassType()
getContainingClassType in interface MemberProgramModelInfo.getContainingClassType(recoder.abstraction.Member)public Type getReturnType()
getReturnType in interface Methodpublic java.util.List<Type> getSignature()
getSignature in interface Methodpublic java.util.List<ClassType> getExceptions()
getExceptions in interface Methodpublic ClassTypeContainer getContainer()
getContainer in interface ClassTypeContainerpublic Package getPackage()
getPackage in interface ClassTypeContainerpublic java.util.List<? extends ClassType> getTypes()
getTypes in interface ClassTypeContainerpublic java.lang.String getName()
getName in interface NamedModelElementpublic java.lang.String getFullName()
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic boolean isVarArgMethod()
Method
isVarArgMethod in interface Methodtrue if this methods takes a variable number of arguments,
false otherwise.public java.util.List<? extends AnnotationUse> getAnnotations()
Member
getAnnotations in interface Membernullpublic DefaultConstructor deepClone()
public java.util.List<? extends TypeParameter> getTypeParameters()
getTypeParameters in interface Method
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||