Class LocalVariableMaker
java.lang.Object
org.jd.core.v1.service.converter.classfiletojavasyntax.util.LocalVariableMaker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CreateLocalVariableVisitor
protected CreateParameterVisitor
protected Frame
protected FormalParameters
protected AbstractLocalVariable[]
protected LocalVariableSet
protected PopulateBlackListNamesVisitor
protected SearchInTypeArgumentVisitor
protected TypeMaker
-
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableMaker
(TypeMaker typeMaker, ClassFileConstructorOrMethodDeclaration comd, boolean constructor, BaseType parameterTypes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsName
(String name) getExceptionLocalVariable
(int index, int offset, ObjectType type) getLocalVariable
(int index, int offset) getLocalVariableInAssignment
(Map<String, BaseType> typeBounds, int index, int offset, Type valueType) getLocalVariableInAssignment
(Map<String, BaseType> typeBounds, int index, int offset, AbstractLocalVariable valueLocalVariable) getLocalVariableInNullAssignment
(int index, int offset, Type valueType) protected void
protected void
initLocalVariablesFromParameterTypes
(ClassFile classFile, BaseType parameterTypes, boolean varargs, int firstVariableIndex, int lastParameterIndex) boolean
isCompatible
(AbstractLocalVariable lv, Type valueType) void
make()
void
popFrame()
void
pushFrame
(Statements statements) void
protected Frame
searchCommonParentFrame
(Frame frame1, Frame frame2) protected AbstractLocalVariable
searchLocalVariable
(int index, int offset) protected void
-
Field Details
-
localVariableSet
-
names
-
blackListNames
-
currentFrame
-
localVariableCache
-
typeMaker
-
typeBounds
-
formalParameters
-
populateBlackListNamesVisitor
-
searchInTypeArgumentVisitor
-
createParameterVisitor
-
createLocalVariableVisitor
-
-
Constructor Details
-
LocalVariableMaker
public LocalVariableMaker(TypeMaker typeMaker, ClassFileConstructorOrMethodDeclaration comd, boolean constructor, BaseType parameterTypes)
-
-
Method Details
-
initLocalVariablesFromAttributes
-
initLocalVariablesFromParameterTypes
-
getLocalVariable
-
searchLocalVariable
-
isCompatible
-
getLocalVariableInAssignment
public AbstractLocalVariable getLocalVariableInAssignment(Map<String, BaseType> typeBounds, int index, int offset, Type valueType) -
getLocalVariableInNullAssignment
public AbstractLocalVariable getLocalVariableInNullAssignment(int index, int offset, Type valueType) -
getLocalVariableInAssignment
public AbstractLocalVariable getLocalVariableInAssignment(Map<String, BaseType> typeBounds, int index, int offset, AbstractLocalVariable valueLocalVariable) -
getExceptionLocalVariable
-
removeLocalVariable
-
store
-
containsName
-
make
public void make() -
getFormalParameters
-
pushFrame
-
popFrame
public void popFrame() -
searchCommonParentFrame
-