Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jboss-javassist/javassist
/ functions
Functions
5,108 in github.com/jboss-javassist/javassist
⨍
Functions
5,108
◇
Types & classes
989
↓ 29 callers
Method
getConstPool
Returns a constant pool table.
src/main/javassist/bytecode/ClassFile.java:309
↓ 29 callers
Method
invoke
(Object target, String method, long arg1, int arg2)
src/test/javassist/JvstTest3.java:862
↓ 29 callers
Method
push
Alters the stack by placing the passed type on the top @param type the type to add to the top
src/main/javassist/bytecode/analysis/Frame.java:140
↓ 29 callers
Method
setModifiers
Sets the encoded modifiers of the field. @see Modifier
src/main/javassist/CtField.java:248
↓ 28 callers
Method
print
(PrintWriter out)
src/main/javassist/bytecode/ConstPool.java:2071
↓ 28 callers
Method
read32bit
Reads a 32bit integer at the index.
src/main/javassist/bytecode/ByteArray.java:48
↓ 27 callers
Method
addInvokestatic
Appends INVOKESTATIC. @param clazz the target class. @param name the method name @param returnType the return type. @param paramTypes
src/main/javassist/bytecode/Bytecode.java:1018
↓ 26 callers
Method
evalBinaryMath
(Type expected, Frame frame)
src/main/javassist/bytecode/analysis/Executor.java:696
↓ 26 callers
Method
getClassLoader
Get the classloader for <code>toClass()</code>, <code>getAnnotations()</code> in <code>CtClass</code>, etc. <p>The default is the context class loade
src/main/javassist/ClassPool.java:1069
↓ 26 callers
Method
hasNext
Returns true if there is more instructions.
src/main/javassist/bytecode/CodeIterator.java:215
↓ 26 callers
Method
rename
Substitutes a class name in the given descriptor string. @param desc descriptor string @param oldname replaced JVM class name @param newname subst
src/main/javassist/bytecode/Descriptor.java:156
↓ 25 callers
Method
addLdc
Appends LDC or LDC_W. The pushed item is a <code>String</code> object. @param s the character string pushed by LDC or LDC_W.
src/main/javassist/bytecode/Bytecode.java:1249
↓ 25 callers
Method
getAccessFlags
Returns access flags. @see javassist.bytecode.AccessFlag
src/main/javassist/bytecode/ClassFile.java:339
↓ 25 callers
Method
getCause
Gets the cause of this throwable. It is for JDK 1.3 compatibility.
src/main/javassist/CannotCompileException.java:33
↓ 25 callers
Method
getClassPool
()
src/main/javassist/compiler/MemberResolver.java:51
↓ 25 callers
Method
getMaxLocals
Returns <code>max_locals</code>.
src/main/javassist/bytecode/CodeAttribute.java:263
↓ 25 callers
Method
getc
()
src/main/javassist/compiler/Lex.java:527
↓ 25 callers
Method
growStack
Increases the current stack depth. It also updates <code>max_stack</code> if the current stack depth is the deepest so far. @param diff the numb
src/main/javassist/bytecode/Bytecode.java:432
↓ 25 callers
Method
read
()
examples/sample/preproc/Compiler.java:311
↓ 25 callers
Method
writeUTF
(String s)
src/main/javassist/bytecode/ByteStream.java:101
↓ 24 callers
Method
accept
Is a method for the visitor pattern. It calls <code>atXXX()</code> on the given visitor, where <code>XXX</code> is the class name of the node object.
src/main/javassist/compiler/ast/ASTree.java:51
↓ 24 callers
Method
addNameAndTypeInfo
Adds a new <code>CONSTANT_NameAndType_info</code> structure. <p>This also adds <code>CONSTANT_Utf8_info</code> structures. @param name <code>na
src/main/javassist/bytecode/ConstPool.java:1009
↓ 24 callers
Method
appendClassPath
Appends a <code>ClassPath</code> object to the end of the search path. @return the appended class path. @see javassist.ClassPath @see javassist.URLCl
src/main/javassist/ClassPool.java:945
↓ 24 callers
Method
isPrimitive
Returns <code>true</code> if this object represents a primitive Java type: boolean, byte, char, short, int, long, float, double, or void.
src/main/javassist/CtClass.java:328
↓ 24 callers
Method
put
(String s, Object obj)
src/test/test4/JIRA152.java:23
↓ 24 callers
Method
setAccessFlags
Sets access flags. @see AccessFlag
src/main/javassist/bytecode/MethodInfo.java:276
↓ 24 callers
Method
setBody
Copies a method body from another method. If this method is abstract, the abstract modifier is removed after the method body is copied. <p>All occurr
src/main/javassist/CtMethod.java:268
↓ 24 callers
Method
simplePush
(Type type, Frame frame)
src/main/javassist/bytecode/analysis/Executor.java:990
↓ 24 callers
Method
toClass
Converts this class to a <code>java.lang.Class</code> object. Once this method is called, further modifications are not allowed any more. To load the
src/main/javassist/CtClass.java:1299
↓ 23 callers
Method
getLeft
()
src/main/javassist/compiler/ast/Pair.java:50
↓ 22 callers
Method
add
(int value)
src/main/javassist/bytecode/analysis/IntQueue.java:32
↓ 22 callers
Method
getDeclaringClass
Returns the name of the class declaring the method including this code attribute.
src/main/javassist/bytecode/CodeAttribute.java:229
↓ 22 callers
Method
toArray
Returns an array containing all of the elements in this queue, in proper sequence. <p>The returned array will be "safe" in that no references to it a
src/test/test/javassist/convert/InstrumentationTarget.java:474
↓ 21 callers
Method
addMethodrefInfo
Adds a new <code>CONSTANT_Methodref_info</code> structure. <p>This also adds a new <code>CONSTANT_NameAndType_info</code> structure. @param classInf
src/main/javassist/bytecode/ConstPool.java:1071
↓ 21 callers
Method
compileStmnt
Compiles a statement (or a block). <code>recordParams()</code> must be called before invoking this method. <p>Local variables that are not declared i
src/main/javassist/compiler/Javac.java:573
↓ 21 callers
Method
getMembers
()
src/main/javassist/CtClassType.java:972
↓ 21 callers
Method
getModifiers
()
src/main/javassist/compiler/ast/FieldDecl.java:29
↓ 21 callers
Method
parseExpression
(SymbolTable tbl)
src/main/javassist/compiler/Parser.java:726
↓ 21 callers
Method
toByteArray
()
src/main/javassist/bytecode/ByteStream.java:178
↓ 20 callers
Method
addAttribute
Appends an attribute. If there is already an attribute with the same name, the new one substitutes for it. @see #getAttributes()
src/main/javassist/bytecode/ClassFile.java:768
↓ 20 callers
Method
getConstantValue
Returns the value of this field if it is a constant field. This method works only if the field type is a primitive type or <code>String</code> type.
src/main/javassist/CtField.java:425
↓ 20 callers
Method
loadClass
Requests the class loader to load a class.
src/main/javassist/Loader.java:340
↓ 20 callers
Method
print
()
src/test/javassist/compiler/CompTest.java:124
↓ 20 callers
Method
set
This method is not available. @throws java.lang.UnsupportedOperationException always thrown.
src/main/javassist/bytecode/CodeAttribute.java:205
↓ 20 callers
Method
setInterfaces
Sets the interfaces of a proxy class.
src/main/javassist/util/proxy/ProxyFactory.java:420
↓ 20 callers
Method
write16bit
(int value)
src/main/javassist/bytecode/annotation/AnnotationsWriter.java:350
↓ 19 callers
Method
addIntegerInfo
Adds a new <code>CONSTANT_Integer_info</code> structure. @return the index of the added entry.
src/main/javassist/bytecode/ConstPool.java:1149
↓ 19 callers
Method
checkModify
()
src/main/javassist/CtClassType.java:327
↓ 19 callers
Method
getAttribute
Returns the attribute with the specified name. If it is not found, this method returns null. <p>An attribute name can be obtained by, for example, {@
src/main/javassist/bytecode/MethodInfo.java:329
↓ 19 callers
Method
getDeclaredField
Retrieves the field with the specified name among the fields declared in the class. <p>Note: this method does not search the super classes.
src/main/javassist/CtClass.java:885
↓ 19 callers
Method
getExceptionTable
Returns <code>exception_table</code>.
src/main/javassist/bytecode/Bytecode.java:188
↓ 19 callers
Method
join
()
src/main/javassist/bytecode/stackmap/TypeData.java:63
↓ 19 callers
Method
make
Compiles the given source code and creates a method. This method simply delegates to <code>make()</code> in <code>CtNewMethod</code>. See it for more
src/main/javassist/CtMethod.java:137
↓ 19 callers
Method
parent
Returns the parent of this node.
src/main/javassist/bytecode/analysis/ControlFlow.java:383
↓ 19 callers
Method
setFilter
Sets a filter that selects the methods that will be controlled by a handler.
src/main/javassist/util/proxy/ProxyFactory.java:436
↓ 19 callers
Method
write32bit
Writes a 32bit integer at the index.
src/main/javassist/bytecode/ByteArray.java:56
↓ 18 callers
Method
addInvokespecial
Appends INVOKESPECIAL. @param clazz the target class. @param name the method name. @param returnType the return type. @param paramTyp
src/main/javassist/bytecode/Bytecode.java:918
↓ 18 callers
Method
addInvokevirtual
Appends INVOKEVIRTUAL. <p>The specified method must not be an inherited method. It must be directly declared in the class specified in <code>clazz</c
src/main/javassist/bytecode/Bytecode.java:1096
↓ 18 callers
Method
equals
Returns true if the given object represents the same annotation as this object. The equality test checks the member values.
src/main/javassist/bytecode/annotation/Annotation.java:332
↓ 18 callers
Method
getMaxStack
Returns <code>max_stack</code>.
src/main/javassist/bytecode/CodeAttribute.java:237
↓ 18 callers
Method
getParameterTypes
Returns the <code>CtClass</code> objects representing the parameter types specified by the given descriptor. @param desc descriptor @param cp the c
src/main/javassist/bytecode/Descriptor.java:414
↓ 18 callers
Method
next
()
src/main/javassist/CtMember.java:146
↓ 18 callers
Method
put
Maps a class name to another name in this hashtable. The names are obtained with calling <code>Class.getName()</code>. This method translates the give
src/main/javassist/ClassMap.java:74
↓ 17 callers
Method
addItem
(ConstInfo info)
src/main/javassist/bytecode/ConstPool.java:923
↓ 17 callers
Method
addLoad
Appends an instruction for loading a value from the local variable at the index <code>n</code>. @param n the index. @param type the type
src/main/javassist/bytecode/Bytecode.java:740
↓ 17 callers
Method
getAnnotations
Returns the annotations associated with this class. For example, if an annotation <code>@Author</code> is associated with this class, the returned arr
src/main/javassist/CtClass.java:644
↓ 17 callers
Method
isArray
Returns whether or not this type is an array. @return true if an array, false if not
src/main/javassist/bytecode/analysis/Type.java:192
↓ 16 callers
Method
addMethod
Appends a method to the class. If there is a bridge method with the same name and signature, then the bridge method is removed before a new method is
src/main/javassist/bytecode/ClassFile.java:659
↓ 16 callers
Method
addPutfield
Appends PUTFIELD. @param c the target class. @param name the field name. @param desc the descriptor of the field type.
src/main/javassist/bytecode/Bytecode.java:1393
↓ 16 callers
Method
getCodeLength
Returns <code>code_length</code> of <code>Code_attribute</code>.
src/main/javassist/bytecode/CodeIterator.java:145
↓ 16 callers
Method
getDeclaredConstructors
Gets all the constructors declared in the class. @see javassist.CtConstructor
src/main/javassist/CtClass.java:941
↓ 16 callers
Method
getFieldInfo2
Returns the FieldInfo representing the field in the class file (read only). Normal applications do not need calling this method. Use <code>getFieldIn
src/main/javassist/CtField.java:206
↓ 16 callers
Method
getParameterTypes
Obtains parameter types of this method/constructor.
src/main/javassist/CtBehavior.java:322
↓ 16 callers
Method
getTypeName
Obtains the name of the annotation type. @return the type name
src/main/javassist/bytecode/annotation/Annotation.java:235
↓ 16 callers
Method
isPrivate
Returns true if the modifiers include the <code>private</code> modifier.
src/main/javassist/Modifier.java:60
↓ 16 callers
Method
isPublic
Returns true if the modifiers include the <code>public</code> modifier.
src/main/javassist/Modifier.java:52
↓ 16 callers
Method
make
(String name)
src/test/javassist/bytecode/StackMapTest.java:41
↓ 16 callers
Method
make
(int op, ASTree oprand1, ASTree oprand2, int lineNumber)
src/main/javassist/compiler/ast/Expr.java:46
↓ 16 callers
Method
position
Returns the position of the first instruction in this block.
src/main/javassist/bytecode/analysis/ControlFlow.java:288
↓ 16 callers
Method
print
(String msg)
src/test/javassist/bytecode/BytecodeTest.java:21
↓ 16 callers
Method
rebuildStackMapIf6
Rebuilds a stack map table if the class file is for Java 6 or later. Java 5 or older Java VMs do not recognize a stack map table. If <code>doPreveri
src/main/javassist/bytecode/MethodInfo.java:436
↓ 16 callers
Method
setType
(CtClass type, int lineNumber)
src/main/javassist/compiler/JvstCodeGen.java:685
↓ 16 callers
Method
stopPruning
Disallows (or allows) automatically pruning this <code>CtClass</code> object. <p> Javassist can automatically prune a <code>CtClass</code> object whe
src/main/javassist/CtClass.java:1456
↓ 16 callers
Method
toBytecode
Converts this class to a class file. Once this method is called, further modifications are not possible any more. @return the contents of the class f
src/main/javassist/CtClass.java:1517
↓ 16 callers
Method
toClassName
Converts to a Java class name from a descriptor. @param descriptor type descriptor.
src/main/javassist/bytecode/Descriptor.java:71
↓ 15 callers
Method
block
Returns the basic block indicated by this node.
src/main/javassist/bytecode/analysis/ControlFlow.java:378
↓ 15 callers
Method
evalLoad
(Type expected, int index, Frame frame, Subroutine subroutine)
src/main/javassist/bytecode/analysis/Executor.java:796
↓ 15 callers
Method
evalStore
(Type expected, int index, Frame frame, Subroutine subroutine)
src/main/javassist/bytecode/analysis/Executor.java:884
↓ 15 callers
Method
getDeclaredMethods
Gets all methods declared in the class. The inherited methods are not included. @see javassist.CtMethod
src/main/javassist/CtClass.java:1004
↓ 15 callers
Method
getValue
Returns the value. If the value type is a primitive type, the returned value is boxed.
src/main/javassist/bytecode/annotation/MemberValue.java:47
↓ 15 callers
Method
insert
Inserts the given bytecode sequence before the next instruction that would be returned by <code>next()</code> (not before the instruction returned by
src/main/javassist/bytecode/CodeIterator.java:361
↓ 15 callers
Method
invoke
(Object target, String method)
src/test/javassist/bytecode/StackMapTest.java:45
↓ 15 callers
Method
lookupClass
(Declarator decl)
src/main/javassist/compiler/MemberResolver.java:339
↓ 15 callers
Method
makeMark
(Map<Integer,Mark> table, int pos)
src/main/javassist/bytecode/stackmap/BasicBlock.java:191
↓ 15 callers
Method
read
Reads a signed 8bit value at the offset from the beginning of the bytecode sequence. @throws ArrayIndexOutOfBoundsException if offset is invalid.
src/main/javassist/bytecode/Bytecode.java:330
↓ 15 callers
Method
recordParams
Makes variables $0 (this), $1, $2, ..., and $args represent method parameters. $args represents an array of all the parameters. It also makes $$ avai
src/main/javassist/compiler/Javac.java:337
↓ 15 callers
Method
visibleFrom
Returns true if this member is accessible from the given class.
src/main/javassist/CtMember.java:185
↓ 14 callers
Method
addPutstatic
Appends PUTSTATIC. @param c the target class. @param name the field name. @param desc the descriptor of the field type.
src/main/javassist/bytecode/Bytecode.java:1426
↓ 14 callers
Method
commonSuperClassEx
Finds the most specific common super class of the given classes by considering array types.
src/main/javassist/bytecode/stackmap/TypeData.java:504
↓ 14 callers
Method
copy
Makes a copy. Class names are replaced according to the given <code>Map</code> object. @param newCp the constant pool table used by the new copy
src/main/javassist/bytecode/AttributeInfo.java:196
← previous
next →
101–200 of 5,108, ranked by callers