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 boolean
protected Frame
protected int
protected int
protected String
protected AbstractLocalVariable
protected DefaultList
<LocalVariableReference> protected int
protected 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 void
accept
(LocalVariableVisitor visitor) void
addReference
(LocalVariableReference reference) protected void
addVariableOnLeft
(AbstractLocalVariable variable) protected void
addVariableOnRight
(AbstractLocalVariable variable) protected void
fireChangeEvent
(Map<String, BaseType> typeBounds) abstract int
getFrame()
int
int
getIndex()
getName()
getNext()
int
abstract Type
getType()
abstract boolean
isAssignableFrom
(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 boolean
isAssignableFrom
(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) boolean
void
setDeclared
(boolean declared) void
void
setFromOffset
(int fromOffset) void
void
setNext
(AbstractLocalVariable next) void
setToOffset
(int offset) abstract void
typeOnLeft
(Map<String, BaseType> typeBounds, Type type) abstract void
typeOnRight
(Map<String, BaseType> typeBounds, Type type) abstract void
variableOnLeft
(Map<String, BaseType> typeBounds, AbstractLocalVariable variable) abstract void
variableOnRight
(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
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. -
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
-