Class ConstExprent
- java.lang.Object
-
- org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
-
- org.jetbrains.java.decompiler.modules.decompiler.exps.ConstExprent
-
- All Implemented Interfaces:
IMatchable
public class ConstExprent extends Exprent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
Exprent.Type
-
Nested classes/interfaces inherited from interface org.jetbrains.java.decompiler.struct.match.IMatchable
IMatchable.MatchProperties
-
-
Field Summary
-
Fields inherited from class org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
BOTH_FLAGS, bytecode, id, inferredLambdaTypes, MULTIPLE_USES, SIDE_EFFECTS_FREE, type
-
-
Constructor Summary
Constructors Constructor Description ConstExprent(int val, boolean boolPermitted, java.util.BitSet bytecodeOffsets)ConstExprent(VarType constType, java.lang.Object value, java.util.BitSet bytecodeOffsets)ConstExprent(VarType constType, java.lang.Object value, java.util.BitSet bytecodeOffsets, boolean wasCondy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustConstType(VarType expectedType)static java.lang.StringconvertStringToJava(java.lang.String value, boolean ascii)Exprentcopy()booleanequals(java.lang.Object o)java.util.List<Exprent>getAllExprents(java.util.List<Exprent> list)voidgetBytecodeRange(java.util.BitSet values)VarTypegetConstType()intgetExprentUse()VarTypegetExprType()intgetIntValue()intgetPrecedence()java.lang.ObjectgetValue()static ConstExprentgetZeroConstant(int type)booleanhasBooleanValue()inthashCode()booleanhasValueOne()booleanisBoolPermitted()booleanisNull()booleanmatch(MatchNode matchNode, MatchEngine engine)voidsetConstType(VarType constType)ConstExprentsetWasCondy(boolean wasCondy)TextBuffertoJava(int indent)java.lang.StringtoString()-
Methods inherited from class org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
addBytecodeOffsets, allowNewlineAfterQualifier, appendParameters, checkExprTypeBounds, containsExprent, containsVar, findObject, gatherGenerics, getAllExprents, getAllExprents, getAllExprents, getAllVariables, getGenericArgs, getInferredExprType, getNamedGenerics, measureBytecode, measureBytecode, measureBytecode, replaceExprent, setInvocationInstance, setIsQualifier, sortIndexed, toJava
-
-
-
-
Constructor Detail
-
ConstExprent
public ConstExprent(int val, boolean boolPermitted, java.util.BitSet bytecodeOffsets)
-
ConstExprent
public ConstExprent(VarType constType, java.lang.Object value, java.util.BitSet bytecodeOffsets)
-
ConstExprent
public ConstExprent(VarType constType, java.lang.Object value, java.util.BitSet bytecodeOffsets, boolean wasCondy)
-
-
Method Detail
-
getExprType
public VarType getExprType()
- Overrides:
getExprTypein classExprent
-
getExprentUse
public int getExprentUse()
- Overrides:
getExprentUsein classExprent
-
getAllExprents
public java.util.List<Exprent> getAllExprents(java.util.List<Exprent> list)
- Specified by:
getAllExprentsin classExprent
-
toJava
public TextBuffer toJava(int indent)
-
getPrecedence
public int getPrecedence()
- Overrides:
getPrecedencein classExprent
-
isNull
public boolean isNull()
-
convertStringToJava
public static java.lang.String convertStringToJava(java.lang.String value, boolean ascii)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
hasBooleanValue
public boolean hasBooleanValue()
-
hasValueOne
public boolean hasValueOne()
-
getZeroConstant
public static ConstExprent getZeroConstant(int type)
-
getConstType
public VarType getConstType()
-
setConstType
public void setConstType(VarType constType)
-
adjustConstType
public void adjustConstType(VarType expectedType)
-
getValue
public java.lang.Object getValue()
-
getIntValue
public int getIntValue()
-
isBoolPermitted
public boolean isBoolPermitted()
-
getBytecodeRange
public void getBytecodeRange(java.util.BitSet values)
- Specified by:
getBytecodeRangein classExprent
-
setWasCondy
public ConstExprent setWasCondy(boolean wasCondy)
-
match
public boolean match(MatchNode matchNode, MatchEngine engine)
- Specified by:
matchin interfaceIMatchable- Overrides:
matchin classExprent
-
-