Class AbstractLocalVariable
java.lang.Object
org.jd.core.v1.service.converter.classfiletojavasyntax.model.localvariable.AbstractLocalVariable
- Direct Known Subclasses:
GenericLocalVariable, ObjectLocalVariable, PrimitiveLocalVariable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Frameprotected intprotected intprotected Stringprotected AbstractLocalVariableprotected DefaultList<LocalVariableReference> protected intprotected HashSet<AbstractLocalVariable> protected HashSet<AbstractLocalVariable> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLocalVariable(int index, int offset, String name) AbstractLocalVariable(int index, int offset, String name, boolean declared) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaccept(LocalVariableVisitor visitor) voidaddReference(LocalVariableReference reference) protected voidaddVariableOnLeft(AbstractLocalVariable variable) protected voidaddVariableOnRight(AbstractLocalVariable variable) protected voidfireChangeEvent(Map<String, BaseType> typeBounds) abstract intgetFrame()intintgetIndex()getName()getNext()intabstract TypegetType()abstract booleanisAssignableFrom(Map<String, BaseType> typeBounds, Type type) Determines if the local variable represented by this object is either the same as, or is a super type variable of, the local variable represented by the specified parameter.abstract booleanisAssignableFrom(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) booleanvoidsetDeclared(boolean declared) voidvoidsetFromOffset(int fromOffset) voidvoidsetNext(AbstractLocalVariable next) voidsetToOffset(int offset) abstract voidtypeOnLeft(Map<String, BaseType> typeBounds, Type type) abstract voidtypeOnRight(Map<String, BaseType> typeBounds, Type type) abstract voidvariableOnLeft(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) abstract voidvariableOnRight(Map<String, BaseType> typeBounds, AbstractLocalVariable variable)
-
Field Details
-
frame
-
next
-
declared
protected boolean declared -
index
protected int index -
fromOffset
protected int fromOffset -
toOffset
protected int toOffset -
name
-
references
-
variablesOnRight
-
variablesOnLeft
-
-
Constructor Details
-
AbstractLocalVariable
-
AbstractLocalVariable
-
-
Method Details
-
getFrame
-
setFrame
-
getNext
-
setNext
-
isDeclared
public boolean isDeclared() -
setDeclared
public void setDeclared(boolean declared) -
getIndex
public int getIndex() -
getFromOffset
public int getFromOffset() -
setFromOffset
public void setFromOffset(int fromOffset) -
getToOffset
public int getToOffset() -
setToOffset
public void setToOffset(int offset) -
getType
-
getName
-
setName
-
getDimension
public abstract int getDimension() -
accept
-
getReferences
-
addReference
-
isAssignableFrom
-
typeOnRight
-
typeOnLeft
-
isAssignableFrom
public abstract boolean isAssignableFrom(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) -
variableOnRight
public abstract void variableOnRight(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) -
variableOnLeft
public abstract void variableOnLeft(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) -
fireChangeEvent
-
addVariableOnLeft
-
addVariableOnRight
-