Class LocalVariableMaker
java.lang.Object
org.jd.core.v1.service.converter.classfiletojavasyntax.util.LocalVariableMaker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CreateLocalVariableVisitorprotected CreateParameterVisitorprotected Frameprotected FormalParametersprotected AbstractLocalVariable[]protected LocalVariableSetprotected PopulateBlackListNamesVisitorprotected SearchInTypeArgumentVisitorprotected TypeMaker -
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableMaker(TypeMaker typeMaker, ClassFileConstructorOrMethodDeclaration comd, boolean constructor, BaseType parameterTypes) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsName(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 voidprotected voidinitLocalVariablesFromParameterTypes(ClassFile classFile, BaseType parameterTypes, boolean varargs, int firstVariableIndex, int lastParameterIndex) booleanisCompatible(AbstractLocalVariable lv, Type valueType) voidmake()voidpopFrame()voidpushFrame(Statements statements) voidprotected FramesearchCommonParentFrame(Frame frame1, Frame frame2) protected AbstractLocalVariablesearchLocalVariable(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
-