|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Superinterface for ASClassType
and ASInterfaceType
.
Method Summary | |
java.lang.String |
getDocComment()
Returns the contents of the documentation comment for this type. |
ASMethod |
getMethod(java.lang.String name)
Returns a reference to the ActionScript method with the given name, or null, if no such method exists. |
java.util.List |
getMethods()
Returns a list of ASMethod objects. |
java.lang.String |
getName()
Returns the name of this class or interface, excluding any package prefix. |
Visibility |
getVisibility()
Returns an object representing the visibility of this ActionScript type definition within the enclosing ActionScript3 package. |
ASMethod |
newMethod(java.lang.String name,
Visibility visibility,
java.lang.String returnType)
Creates a new ActionScript method definition, adds it to the list of methods supported by this tyoe, and returns a reference to the method. |
void |
removeMethod(java.lang.String name)
Removes the named ActionScript method from the list of methods supported by this ActionScript class. |
void |
setDocComment(java.lang.String text)
Set the contents of the 'documentation comment' for this ActionScript type. |
void |
setName(java.lang.String name)
Sets the name by which this type is identified. |
void |
setVisibility(Visibility visibility)
Defines the visibility of this ActionScript type definition within the enclosing ActionScript3 package. |
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.List getMethods()
ASMethod
objects. Don't attempt to change
the type by modifying the list.
public ASMethod getMethod(java.lang.String name)
public ASMethod newMethod(java.lang.String name, Visibility visibility, java.lang.String returnType)
Note that the methods of an ASInterfaceType
cannot have
statements added to them, though this API doesn't make the
restriction apparent.
name
- The name of the method to be createdvisibility
- an object representing the alloed access to the
new method by other ActionScript codereturnType
- The name of this method's return type, or null, if
this method's return value is untyped.public void removeMethod(java.lang.String name)
public java.lang.String getDocComment()
public void setDocComment(java.lang.String text)
public Visibility getVisibility()
public void setVisibility(Visibility visibility)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |