public class CompoundType.Method extends Object implements ContextElement, Cloneable
| Constructor and Description |
|---|
Method(CompoundType enclosing,
MemberDefinition memberDef,
boolean quiet,
ContextStack stack)
Create a new Method object corresponding to the given
method definition.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone()
Cloning is supported by returning a shallow copy of this object.
|
void |
destroy()
Release all resources.
|
boolean |
equals(Object obj)
Equality check based on method signature.
|
String[] |
getArgumentNames()
Return the names of the argument types of this method.
|
Type[] |
getArguments()
Return the argument types of this method.
|
int |
getAttributeKind()
Return the attribute kind.
|
String |
getAttributeName()
Return the attribute name.
|
int |
getAttributePairIndex()
For kinds ATTRIBUTE_GET_RW or ATTRIBUTE_IS_RW, return
the index of the matching ATTRIBUTE_SET method, and
vice-versa.
|
Identifier |
getDeclaredBy()
Return the identifier for the class or interface which
declares this method.
|
String |
getElementName()
Return context element name.
|
CompoundType |
getEnclosing()
Return the compound type which contains this method.
|
ValueType[] |
getExceptions()
Return an array of the exception classes declared to be
thrown by this remote method.
|
ValueType[] |
getFilteredStubExceptions(ValueType[] list)
Return an array containing only those exceptions which need to be
handled explicitly by the stub.
|
String |
getIDLName()
IDL_Naming
Return the IDL name of this method.
|
ValueType[] |
getImplExceptions()
Same as getExceptions(), except when method is in an
ImplementationType and the exceptions list is narrower.
|
MemberDefinition |
getMemberDefinition()
Return the MemberDefinition from which this method was created.
|
String |
getName()
Return the name of this method.
|
Type |
getReturnType()
Get the return type of this method.
|
Type |
getType()
Return the type of this method.
|
ValueType[] |
getUniqueCatchList(ValueType[] list)
Return an array containing only those exceptions which
need to be caught.
|
String |
getVisibility()
Return the visibility (e.g.
|
int |
hashCode() |
boolean |
isAttribute()
Is this method an attribute?
Return true if getAttributeKind != ATTRIBUTE_NONE.
|
boolean |
isConstructor()
Return true if this is a constructor.
|
boolean |
isInherited()
Is this method inherited?
|
boolean |
isNormalMethod()
Return true if this is NOT a constructor
&& is not
an attribute. |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic()
Methods to check various attributes.
|
boolean |
isReadWriteAttribute()
Is this method a read-write attribute?
|
boolean |
isStatic() |
CompoundType.Method |
mergeWith(CompoundType.Method other)
Return a new Method object that is a legal combination of
this method object and another one.
|
void |
setAttributeKind(int kind)
Set attribute kind.
|
void |
setAttributeName(String name)
Set attribute name.
|
void |
setAttributePairIndex(int index)
Set pair index.
|
void |
setDeclaredBy(Identifier by)
Set the declaredBy Identifier.
|
void |
setIDLName(String idlName)
Set the idl name.
|
void |
setImplExceptions(ValueType[] exceptions)
Set the implExceptions array.
|
protected void |
swapInvalidTypes()
Convert all invalid types to valid ones.
|
String |
toString()
Return the string representation of this method.
|
public Method(CompoundType enclosing, MemberDefinition memberDef, boolean quiet, ContextStack stack) throws Exception
Exceptionpublic boolean isInherited()
public boolean isAttribute()
public boolean isReadWriteAttribute()
public int getAttributeKind()
public String getAttributeName()
public int getAttributePairIndex()
public String getElementName()
getElementName in interface ContextElementpublic boolean equals(Object obj)
public CompoundType.Method mergeWith(CompoundType.Method other)
public CompoundType getEnclosing()
public Identifier getDeclaredBy()
public String getVisibility()
public boolean isPublic()
public boolean isProtected()
public boolean isPrivate()
public boolean isStatic()
public String getName()
public String getIDLName()
public Type getType()
public boolean isConstructor()
public boolean isNormalMethod()
&& is not
an attribute.public Type getReturnType()
public Type[] getArguments()
public String[] getArgumentNames()
public MemberDefinition getMemberDefinition()
public ValueType[] getExceptions()
public ValueType[] getImplExceptions()
public ValueType[] getUniqueCatchList(ValueType[] list)
public ValueType[] getFilteredStubExceptions(ValueType[] list)
public String toString()
public void setAttributeKind(int kind)
public void setAttributePairIndex(int index)
public void setAttributeName(String name)
public void setIDLName(String idlName)
public void setImplExceptions(ValueType[] exceptions)
public void setDeclaredBy(Identifier by)
protected void swapInvalidTypes()
public void destroy()
Copyright © 2018. All Rights Reserved.