Tabnine Logo
MethodDefinition
Code IndexAdd Tabnine to your IDE (free)

How to use
MethodDefinition
in
org.eclipse.persistence.internal.codegen

Best Java code snippets using org.eclipse.persistence.internal.codegen.MethodDefinition (Showing top 20 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

protected void adjustTypeNames(Map typeNameMap) {
  adjustReturnType(typeNameMap);
  adjustExceptions(typeNameMap);
  adjustLines(typeNameMap);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

private void adjustLines(Map typeNameMap) {
  for (Iterator i = new Vector(getLines()).iterator(); i.hasNext();) {
    adjustLine((String)i.next(), typeNameMap);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

private void adjustExceptions(Map typeNameMap) {
  for (Iterator i = new Vector(getExceptions()).iterator(); i.hasNext();) {
    String exceptionName = (String)i.next();
    String adjustedExceptionName = adjustTypeName(exceptionName, typeNameMap);
    if (!exceptionName.equals(adjustedExceptionName)) {
      replaceException(exceptionName, adjustedExceptionName);
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

private void adjustReturnType(Map typeNameMap) {
  String adjustedReturnType = adjustTypeName(getReturnType(), typeNameMap);
  if (!getReturnType().equals(adjustedReturnType)) {
    setReturnType(adjustedReturnType);
  }
}
origin: com.haulmont.thirdparty/eclipselink

public boolean equals(Object object) {
  if (this == object) {
    return true;
  }
  if (!(object instanceof MethodDefinition)) {
    return false;
  }
  MethodDefinition methodDefinition = (MethodDefinition)object;
  if ((this.name == null) && (methodDefinition.getName() != null)) {
    return false;
  }
  if ((this.name != null) && !this.name.equals(methodDefinition.getName())) {
    return false;
  }
  if (!this.accessLevel.equals(methodDefinition.getAccessLevel())) {
    return false;
  }
  if (!this.returnType.equals(methodDefinition.getReturnType())) {
    return false;
  }
  if (!argumentsEqual(methodDefinition)) {
    return false;
  }
  if (!exceptionsEqual(methodDefinition)) {
    return false;
  }
  return true;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Parses the line, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustLine(String line, Map typeNameMap) {
  StringBuffer lineInProgress = new StringBuffer(line);
  Set typeNames = parseForTypeNames(lineInProgress.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        lineInProgress.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      }
    }
  }
  replaceLine(line, lineInProgress.toString());
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public Iterator argumentNames() {
  return getArgumentNames().iterator();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected void adjustTypeNames(Map typeNameMap) {
  super.adjustTypeNames(typeNameMap);
  adjustArgumentTypeNames(typeNameMap);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public boolean equals(Object object) {
  if (this == object) {
    return true;
  }
  if (!(object instanceof MethodDefinition)) {
    return false;
  }
  MethodDefinition methodDefinition = (MethodDefinition)object;
  if ((this.name == null) && (methodDefinition.getName() != null)) {
    return false;
  }
  if ((this.name != null) && !this.name.equals(methodDefinition.getName())) {
    return false;
  }
  if (!this.accessLevel.equals(methodDefinition.getAccessLevel())) {
    return false;
  }
  if (!this.returnType.equals(methodDefinition.getReturnType())) {
    return false;
  }
  if (!argumentsEqual(methodDefinition)) {
    return false;
  }
  if (!exceptionsEqual(methodDefinition)) {
    return false;
  }
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

private void adjustReturnType(Map typeNameMap) {
  String adjustedReturnType = adjustTypeName(getReturnType(), typeNameMap);
  if (!getReturnType().equals(adjustedReturnType)) {
    setReturnType(adjustedReturnType);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Parses the line, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustLine(String line, Map typeNameMap) {
  StringBuffer lineInProgress = new StringBuffer(line);
  Set typeNames = parseForTypeNames(lineInProgress.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        lineInProgress.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      }
    }
  }
  replaceLine(line, lineInProgress.toString());
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public String getArgumentName(int index) {
  return (String)getArgumentNames().get(index);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected void adjustTypeNames(Map typeNameMap) {
  super.adjustTypeNames(typeNameMap);
  adjustArgumentTypeNames(typeNameMap);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public boolean equals(Object object) {
  if (this == object) {
    return true;
  }
  if (!(object instanceof MethodDefinition)) {
    return false;
  }
  MethodDefinition methodDefinition = (MethodDefinition)object;
  if ((this.name == null) && (methodDefinition.getName() != null)) {
    return false;
  }
  if ((this.name != null) && !this.name.equals(methodDefinition.getName())) {
    return false;
  }
  if (!this.accessLevel.equals(methodDefinition.getAccessLevel())) {
    return false;
  }
  if (!this.returnType.equals(methodDefinition.getReturnType())) {
    return false;
  }
  if (!argumentsEqual(methodDefinition)) {
    return false;
  }
  if (!exceptionsEqual(methodDefinition)) {
    return false;
  }
  return true;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected void adjustTypeNames(Map typeNameMap) {
  adjustReturnType(typeNameMap);
  adjustExceptions(typeNameMap);
  adjustLines(typeNameMap);
}
origin: com.haulmont.thirdparty/eclipselink

private void adjustExceptions(Map typeNameMap) {
  for (Iterator i = new Vector(getExceptions()).iterator(); i.hasNext();) {
    String exceptionName = (String)i.next();
    String adjustedExceptionName = adjustTypeName(exceptionName, typeNameMap);
    if (!exceptionName.equals(adjustedExceptionName)) {
      replaceException(exceptionName, adjustedExceptionName);
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

private void adjustReturnType(Map typeNameMap) {
  String adjustedReturnType = adjustTypeName(getReturnType(), typeNameMap);
  if (!getReturnType().equals(adjustedReturnType)) {
    setReturnType(adjustedReturnType);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Parses the line, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustLine(String line, Map typeNameMap) {
  StringBuffer lineInProgress = new StringBuffer(line);
  Set typeNames = parseForTypeNames(lineInProgress.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        lineInProgress.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      }
    }
  }
  replaceLine(line, lineInProgress.toString());
}
origin: com.haulmont.thirdparty/eclipselink

private void adjustLines(Map typeNameMap) {
  for (Iterator i = new Vector(getLines()).iterator(); i.hasNext();) {
    adjustLine((String)i.next(), typeNameMap);
  }
}
origin: com.haulmont.thirdparty/eclipselink

public String getArgumentName(int index) {
  return (String)getArgumentNames().get(index);
}
org.eclipse.persistence.internal.codegenMethodDefinition

Javadoc

INTERNAL:

Purpose: Model a method for code generation purposes.

Most used methods

  • adjustExceptions
  • adjustLine
    Parses the line, removing the package name for each type (and adding the appropriate import) if the
  • adjustLines
  • adjustReturnType
  • adjustTypeName
  • adjustTypeNames
  • argumentsEqual
  • exceptionsEqual
  • getAccessLevel
  • getArgumentNames
  • getArgumentTypeNames
  • getArgumentTypes
  • getArgumentTypeNames,
  • getArgumentTypes,
  • getExceptions,
  • getLines,
  • getName,
  • getReturnType,
  • isAbstract,
  • isConstructor,
  • parseForTypeNames,
  • putTypeNameInMap

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JTable (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now