public class CodeTypeDeclaration extends CodeMember implements IdentifierScope
| Constructor and Description |
|---|
CodeTypeDeclaration() |
CodeTypeDeclaration(AccessModifierType access,
String typeNS,
String typeName,
Class<?> baseType,
CodeMember... members) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(CodeMember member) |
void |
addAll(Collection<? extends CodeMember> value) |
boolean |
equals(Object arg) |
AccessModifierType |
getAccess() |
Class<?> |
getBaseType() |
List<CodeMember> |
getMembers()
Contains the output methods.
|
String |
getNamespace() |
String |
getTypeName() |
int |
hashCode() |
boolean |
isLocalIdent(String ident)
Determines if the client ident is declared in local scope
|
String |
nextIdent(String prefix)
Gets a new unique ident with the given prefix
|
void |
setAccess(AccessModifierType value) |
void |
setBaseType(Class<?> value) |
void |
setNamespace(String value) |
void |
setTypeName(String value) |
String |
uniqueIdent(String ident)
Gets the corresponding unique server ident for the client ident
|
void |
visit(CodeVisitor visitor)
Walks this code object structure
|
getName, setName, withMetaDatagetMetaData, hasMetaData, putMetaData, removeMetaData, toStringpublic CodeTypeDeclaration()
public CodeTypeDeclaration(AccessModifierType access, String typeNS, String typeName, Class<?> baseType, CodeMember... members)
public AccessModifierType getAccess()
getAccess in class CodeMemberpublic void setAccess(AccessModifierType value)
setAccess in class CodeMemberpublic Class<?> getBaseType()
public void setBaseType(Class<?> value)
public void setTypeName(String value)
public String getTypeName()
public void setNamespace(String value)
public String getNamespace()
public List<CodeMember> getMembers()
public void add(CodeMember member)
public void addAll(Collection<? extends CodeMember> value)
public boolean isLocalIdent(String ident)
IdentifierScopeisLocalIdent in interface IdentifierScopepublic String uniqueIdent(String ident)
IdentifierScopeuniqueIdent in interface IdentifierScopepublic String nextIdent(String prefix)
IdentifierScopenextIdent in interface IdentifierScopepublic void visit(CodeVisitor visitor)
CodeObjectvisit in class CodeObjectpublic boolean equals(Object arg)
equals in class CodeMemberpublic int hashCode()
hashCode in class CodeMemberCopyright © 2014. All rights reserved.