org.modeshape.sequencer.javafile.metadata
Class TypeMetadata
java.lang.Object
org.modeshape.sequencer.javafile.metadata.AbstractMetadata
org.modeshape.sequencer.javafile.metadata.TypeMetadata
- Direct Known Subclasses:
- EnumMetadata
public class TypeMetadata
- extends AbstractMetadata
Exposes meta data of a top level type.
Fields inherited from class org.modeshape.sequencer.javafile.metadata.AbstractMetadata |
ABSTRACT, FINAL, name, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT_FP, SYNCRHONIZED, TRANSIENT, VOLATILE |
Methods inherited from class org.modeshape.sequencer.javafile.metadata.AbstractMetadata |
getAnnotations, getModifiers, getName, hasAbstractModifier, hasFinalModifier, hasNativeModifier, hasPrivateVisibility, hasProtectedVisibility, hasPublicVisibility, hasStaticModifier, hasStrictFPModifier, hasSynchronizedModifier, hasTransientModifier, hasVolatileModifier, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeMetadata
protected TypeMetadata(String name,
TypeMetadata.Type type)
getInterfaceNames
public List<String> getInterfaceNames()
getFields
public List<FieldMetadata> getFields()
- Gets a ordered lists of
FieldMetadata
from the unit.
- Returns:
- all fields of this unit if there is one.
getMethods
public List<MethodMetadata> getMethods()
- Gets all
MethodMetadata
from the unit.
- Returns:
- all methods from the units.
getType
public TypeMetadata.Type getType()
getSuperTypeName
public String getSuperTypeName()
setSuperTypeName
public void setSuperTypeName(String superTypeName)
classType
public static TypeMetadata classType(String name)
enumType
public static EnumMetadata enumType(String name)
interfaceType
public static TypeMetadata interfaceType(String name)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.