Package com.yworks.yshrink.model
Class AbstractDescriptor
- java.lang.Object
-
- com.yworks.yshrink.model.AbstractDescriptor
-
- Direct Known Subclasses:
ClassDescriptor,FieldDescriptor,MethodDescriptor,NewNodeDescriptor
public abstract class AbstractDescriptor extends java.lang.ObjectThe type Abstract descriptor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDescriptor(int access, java.io.File sourceJar)Instantiates a new Abstract descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationUsageaddAnnotation(java.lang.String annotationName)Add annotation annotation usage.intgetAccess()Gets access.java.util.List<AnnotationUsage>getAnnotations()Gets annotations.java.lang.ObjectgetNode()Gets node.java.io.FilegetSourceJar()Gets source jar.booleanisAbstract()Is abstract boolean.booleanisEntryPoint()Is entry point boolean.booleanisSynthetic()Is synthetic boolean.voidsetEntryPoint(boolean entryPoint)Sets entry point.voidsetNode(java.lang.Object node)Sets node.voidsetReachable(boolean reachable)Sets reachable.
-
-
-
Method Detail
-
addAnnotation
public AnnotationUsage addAnnotation(java.lang.String annotationName)
Add annotation annotation usage.- Parameters:
annotationName- the annotation name- Returns:
- the annotation usage
-
getAnnotations
public java.util.List<AnnotationUsage> getAnnotations()
Gets annotations.- Returns:
- the annotations
-
getNode
public java.lang.Object getNode()
Gets node.- Returns:
- the node
-
setNode
public void setNode(java.lang.Object node)
Sets node.- Parameters:
node- the node
-
isEntryPoint
public boolean isEntryPoint()
Is entry point boolean.- Returns:
- the boolean
-
setEntryPoint
public void setEntryPoint(boolean entryPoint)
Sets entry point.- Parameters:
entryPoint- the entry point
-
setReachable
public void setReachable(boolean reachable)
Sets reachable.- Parameters:
reachable- the reachable
-
getAccess
public int getAccess()
Gets access.- Returns:
- the access
-
isSynthetic
public boolean isSynthetic()
Is synthetic boolean.- Returns:
- the boolean
-
isAbstract
public boolean isAbstract()
Is abstract boolean.- Returns:
- the boolean
-
getSourceJar
public java.io.File getSourceJar()
Gets source jar.- Returns:
- the source jar
-
-